Skip to content

Commit 8ce8550

Browse files
Deploy preview for PR 1160 🛫
1 parent 2a2f571 commit 8ce8550

File tree

572 files changed

+613
-590
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

572 files changed

+613
-590
lines changed

pr-preview/pr-1160/_sources/c-api/veryhigh.rst.txt

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,12 @@ the same library that the Python runtime is using.
100100
Otherwise, Python may not handle script file with LF line ending correctly.
101101
102102
103-
.. c:function:: int PyRun_InteractiveOne(FILE *fp, const char *filename)
104-
105-
This is a simplified interface to :c:func:`PyRun_InteractiveOneFlags` below,
106-
leaving *flags* set to ``NULL``.
107-
108-
109-
.. c:function:: int PyRun_InteractiveOneFlags(FILE *fp, const char *filename, PyCompilerFlags *flags)
103+
.. c:function:: int PyRun_InteractiveOneObject(FILE *fp, PyObject *filename, PyCompilerFlags *flags)
110104
111105
Read and execute a single statement from a file associated with an
112106
interactive device according to the *flags* argument. The user will be
113-
prompted using ``sys.ps1`` and ``sys.ps2``. *filename* is decoded from the
114-
:term:`filesystem encoding and error handler`.
107+
prompted using ``sys.ps1`` and ``sys.ps2``. *filename* must be a Python
108+
:class:`str` object.
115109
116110
Returns ``0`` when the input was
117111
executed successfully, ``-1`` if there was an exception, or an error code
@@ -120,6 +114,19 @@ the same library that the Python runtime is using.
120114
:file:`Python.h`, so must be included specifically if needed.)
121115
122116
117+
.. c:function:: int PyRun_InteractiveOne(FILE *fp, const char *filename)
118+
119+
This is a simplified interface to :c:func:`PyRun_InteractiveOneFlags` below,
120+
leaving *flags* set to ``NULL``.
121+
122+
123+
.. c:function:: int PyRun_InteractiveOneFlags(FILE *fp, const char *filename, PyCompilerFlags *flags)
124+
125+
Similar to :c:func:`PyRun_InteractiveOneObject`, but *filename* is a
126+
:c:expr:`const char*`, which is decoded from the
127+
:term:`filesystem encoding and error handler`.
128+
129+
123130
.. c:function:: int PyRun_InteractiveLoop(FILE *fp, const char *filename)
124131
125132
This is a simplified interface to :c:func:`PyRun_InteractiveLoopFlags` below,

pr-preview/pr-1160/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ <h3>導航</h3>
314314
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
315315
<br>
316316
<br>
317-
最後更新於 11月 12, 2025 (19:03 UTC)。
317+
最後更新於 11月 13, 2025 (00:21 UTC)。
318318

319319
<a href="/bugs.html">發現 bug</a>
320320

pr-preview/pr-1160/bugs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ <h3>導航</h3>
351351
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
352352
<br>
353353
<br>
354-
最後更新於 11月 12, 2025 (19:03 UTC)。
354+
最後更新於 11月 13, 2025 (00:21 UTC)。
355355

356356
<a href="/bugs.html">發現 bug</a>
357357

pr-preview/pr-1160/c-api/abstract.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ <h3>導航</h3>
323323
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
324324
<br>
325325
<br>
326-
最後更新於 11月 12, 2025 (19:03 UTC)。
326+
最後更新於 11月 13, 2025 (00:21 UTC)。
327327

328328
<a href="/bugs.html">發現 bug</a>
329329

pr-preview/pr-1160/c-api/allocation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ <h3>導航</h3>
532532
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
533533
<br>
534534
<br>
535-
最後更新於 11月 12, 2025 (19:03 UTC)。
535+
最後更新於 11月 13, 2025 (00:21 UTC)。
536536

537537
<a href="/bugs.html">發現 bug</a>
538538

pr-preview/pr-1160/c-api/apiabiversion.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ <h3>導航</h3>
471471
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
472472
<br>
473473
<br>
474-
最後更新於 11月 12, 2025 (19:03 UTC)。
474+
最後更新於 11月 13, 2025 (00:21 UTC)。
475475

476476
<a href="/bugs.html">發現 bug</a>
477477

pr-preview/pr-1160/c-api/arg.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ <h3>導航</h3>
954954
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
955955
<br>
956956
<br>
957-
最後更新於 11月 12, 2025 (19:03 UTC)。
957+
最後更新於 11月 13, 2025 (00:21 UTC)。
958958

959959
<a href="/bugs.html">發現 bug</a>
960960

pr-preview/pr-1160/c-api/bool.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ <h3>導航</h3>
334334
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
335335
<br>
336336
<br>
337-
最後更新於 11月 12, 2025 (19:03 UTC)。
337+
最後更新於 11月 13, 2025 (00:21 UTC)。
338338

339339
<a href="/bugs.html">發現 bug</a>
340340

pr-preview/pr-1160/c-api/buffer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ <h3>導航</h3>
10221022
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
10231023
<br>
10241024
<br>
1025-
最後更新於 11月 12, 2025 (19:03 UTC)。
1025+
最後更新於 11月 13, 2025 (00:21 UTC)。
10261026

10271027
<a href="/bugs.html">發現 bug</a>
10281028

pr-preview/pr-1160/c-api/bytearray.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ <h3>導航</h3>
397397
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
398398
<br>
399399
<br>
400-
最後更新於 11月 12, 2025 (19:03 UTC)。
400+
最後更新於 11月 13, 2025 (00:21 UTC)。
401401

402402
<a href="/bugs.html">發現 bug</a>
403403

0 commit comments

Comments
 (0)