Skip to content

Commit 88f73ea

Browse files
Deploy preview for PR 1231 🛫
1 parent f13c867 commit 88f73ea

586 files changed

Lines changed: 6247 additions & 6233 deletions

File tree

Some content is hidden

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

pr-preview/pr-1231/_sources/library/os.rst.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4139,16 +4139,17 @@ Naturally, they are all only available on Linux.
41394139
- :const:`time.CLOCK_BOOTTIME` (Since Linux 3.15 for timerfd_create)
41404140

41414141
If *clockid* is :const:`time.CLOCK_REALTIME`, a settable system-wide
4142-
real-time clock is used. If system clock is changed, timer setting need
4143-
to be updated. To cancel timer when system clock is changed, see
4142+
real-time clock is used. If the system clock is changed, the timer setting
4143+
needs to be updated. To cancel the timer when the system clock is changed, see
41444144
:const:`TFD_TIMER_CANCEL_ON_SET`.
41454145

41464146
If *clockid* is :const:`time.CLOCK_MONOTONIC`, a non-settable monotonically
41474147
increasing clock is used. Even if the system clock is changed, the timer
41484148
setting will not be affected.
41494149

4150-
If *clockid* is :const:`time.CLOCK_BOOTTIME`, same as :const:`time.CLOCK_MONOTONIC`
4151-
except it includes any time that the system is suspended.
4150+
If *clockid* is :const:`time.CLOCK_BOOTTIME`, it is the same as
4151+
:const:`time.CLOCK_MONOTONIC` except it includes any time that the system
4152+
is suspended.
41524153

41534154
The file descriptor's behaviour can be modified by specifying a *flags* value.
41544155
Any of the following variables may be used, combined using bitwise OR
@@ -4159,8 +4160,8 @@ Naturally, they are all only available on Linux.
41594160

41604161
If :const:`TFD_NONBLOCK` is not set as a flag, :func:`read` blocks until
41614162
the timer expires. If it is set as a flag, :func:`read` doesn't block, but
4162-
If there hasn't been an expiration since the last call to read,
4163-
:func:`read` raises :class:`OSError` with ``errno`` is set to
4163+
if there hasn't been an expiration since the last call to read,
4164+
:func:`read` raises :class:`OSError` with ``errno`` set to
41644165
:const:`errno.EAGAIN`.
41654166

41664167
:const:`TFD_CLOEXEC` is always set by Python automatically.
@@ -4175,7 +4176,7 @@ Naturally, they are all only available on Linux.
41754176
.. versionadded:: 3.13
41764177

41774178

4178-
.. function:: timerfd_settime(fd, /, *, flags=flags, initial=0.0, interval=0.0)
4179+
.. function:: timerfd_settime(fd, /, *, flags=0, initial=0.0, interval=0.0)
41794180

41804181
Alter a timer file descriptor's internal timer.
41814182
This function operates the same interval timer as :func:`timerfd_settime_ns`.
@@ -4190,12 +4191,11 @@ Naturally, they are all only available on Linux.
41904191
- :const:`TFD_TIMER_CANCEL_ON_SET`
41914192

41924193
The timer is disabled by setting *initial* to zero (``0``).
4193-
If *initial* is equal to or greater than zero, the timer is enabled.
4194+
If *initial* is greater than zero, the timer is enabled.
41944195
If *initial* is less than zero, it raises an :class:`OSError` exception
4195-
with ``errno`` set to :const:`errno.EINVAL`
4196+
with ``errno`` set to :const:`errno.EINVAL`.
41964197

41974198
By default the timer will fire when *initial* seconds have elapsed.
4198-
(If *initial* is zero, timer will fire immediately.)
41994199

42004200
However, if the :const:`TFD_TIMER_ABSTIME` flag is set,
42014201
the timer will fire when the timer's clock
@@ -4206,13 +4206,13 @@ Naturally, they are all only available on Linux.
42064206
If *interval* is greater than zero, the timer fires every time *interval*
42074207
seconds have elapsed since the previous expiration.
42084208
If *interval* is less than zero, it raises :class:`OSError` with ``errno``
4209-
set to :const:`errno.EINVAL`
4209+
set to :const:`errno.EINVAL`.
42104210

42114211
If the :const:`TFD_TIMER_CANCEL_ON_SET` flag is set along with
42124212
:const:`TFD_TIMER_ABSTIME` and the clock for this timer is
42134213
:const:`time.CLOCK_REALTIME`, the timer is marked as cancelable if the
42144214
real-time clock is changed discontinuously. Reading the descriptor is
4215-
aborted with the error ECANCELED.
4215+
aborted with the error :const:`errno.ECANCELED`.
42164216

42174217
Linux manages system clock as UTC. A daylight-savings time transition is
42184218
done by changing time offset only and doesn't cause discontinuous system

pr-preview/pr-1231/_sources/library/turtle.rst.txt

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
**Source code:** :source:`Lib/turtle.py`
1111

1212
.. testsetup:: default
13+
:skipif: _tkinter is None
1314

1415
from turtle import *
1516
turtle = Turtle()
1617

1718
.. testcleanup::
19+
:skipif: _tkinter is None
1820

1921
import os
2022
os.remove("my_drawing.ps")
@@ -509,6 +511,7 @@ Turtle motion
509511
turtle is headed. Do not change the turtle's heading.
510512

511513
.. doctest::
514+
:skipif: _tkinter is None
512515
:hide:
513516

514517
>>> turtle.goto(0, 0)
@@ -851,6 +854,7 @@ Turtle motion
851854
last *n* stamps.
852855

853856
.. doctest::
857+
:skipif: _tkinter is None
854858

855859
>>> for i in range(8):
856860
... unused_stamp_id = turtle.stamp()
@@ -1408,8 +1412,11 @@ More drawing control
14081412
font. If *move* is true, the pen is moved to the bottom-right corner of the
14091413
text. By default, *move* is ``False``.
14101414

1411-
>>> turtle.write("Home = ", True, align="center")
1412-
>>> turtle.write((0,0), True)
1415+
.. doctest::
1416+
:skipif: _tkinter is None
1417+
1418+
>>> turtle.write("Home = ", True, align="center")
1419+
>>> turtle.write((0,0), True)
14131420

14141421

14151422
Turtle state
@@ -1446,12 +1453,15 @@ Visibility
14461453

14471454
Return ``True`` if the Turtle is shown, ``False`` if it's hidden.
14481455

1449-
>>> turtle.hideturtle()
1450-
>>> turtle.isvisible()
1451-
False
1452-
>>> turtle.showturtle()
1453-
>>> turtle.isvisible()
1454-
True
1456+
.. doctest::
1457+
:skipif: _tkinter is None
1458+
1459+
>>> turtle.hideturtle()
1460+
>>> turtle.isvisible()
1461+
False
1462+
>>> turtle.showturtle()
1463+
>>> turtle.isvisible()
1464+
True
14551465

14561466

14571467
Appearance
@@ -1982,6 +1992,9 @@ Window control
19821992
method, one can make visible those parts of a drawing which were outside the
19831993
canvas before.
19841994

1995+
.. doctest::
1996+
:skipif: _tkinter is None
1997+
19851998
>>> screen.screensize()
19861999
(400, 300)
19872000
>>> screen.screensize(2000,1500)

pr-preview/pr-1231/_sources/tutorial/modules.rst.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -584,20 +584,6 @@ Since the main module does not have a package, modules intended for use
584584
as the main module of a Python application must always use absolute imports.
585585

586586

587-
Packages in Multiple Directories
588-
--------------------------------
589-
590-
Packages support one more special attribute, :attr:`~module.__path__`. This is
591-
initialized to be a :term:`sequence` of strings containing the name of the
592-
directory holding the
593-
package's :file:`__init__.py` before the code in that file is executed. This
594-
variable can be modified; doing so affects future searches for modules and
595-
subpackages contained in the package.
596-
597-
While this feature is not often needed, it can be used to extend the set of
598-
modules found in a package.
599-
600-
601587
.. rubric:: Footnotes
602588

603589
.. [#] In fact function definitions are also 'statements' that are 'executed'; the

pr-preview/pr-1231/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ <h3>導航</h3>
356356
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
357357
<br>
358358
<br>
359-
最後更新於 8月 25, 2026 (00:16 UTC)。
359+
最後更新於 8月 28, 2026 (02:53 UTC)。
360360

361361
<a href="/bugs.html">發現 bug</a>
362362

pr-preview/pr-1231/bugs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ <h3>導航</h3>
393393
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
394394
<br>
395395
<br>
396-
最後更新於 8月 25, 2026 (00:16 UTC)。
396+
最後更新於 8月 28, 2026 (02:53 UTC)。
397397

398398
<a href="/bugs.html">發現 bug</a>
399399

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ <h3>導航</h3>
365365
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
366366
<br>
367367
<br>
368-
最後更新於 8月 25, 2026 (00:16 UTC)。
368+
最後更新於 8月 28, 2026 (02:53 UTC)。
369369

370370
<a href="/bugs.html">發現 bug</a>
371371

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ <h3>導航</h3>
577577
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
578578
<br>
579579
<br>
580-
最後更新於 8月 25, 2026 (00:16 UTC)。
580+
最後更新於 8月 28, 2026 (02:53 UTC)。
581581

582582
<a href="/bugs.html">發現 bug</a>
583583

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ <h3>導航</h3>
514514
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
515515
<br>
516516
<br>
517-
最後更新於 8月 25, 2026 (00:16 UTC)。
517+
最後更新於 8月 28, 2026 (02:53 UTC)。
518518

519519
<a href="/bugs.html">發現 bug</a>
520520

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ <h3>導航</h3>
10011001
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
10021002
<br>
10031003
<br>
1004-
最後更新於 8月 25, 2026 (00:16 UTC)。
1004+
最後更新於 8月 28, 2026 (02:53 UTC)。
10051005

10061006
<a href="/bugs.html">發現 bug</a>
10071007

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ <h3>導航</h3>
376376
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
377377
<br>
378378
<br>
379-
最後更新於 8月 25, 2026 (00:16 UTC)。
379+
最後更新於 8月 28, 2026 (02:53 UTC)。
380380

381381
<a href="/bugs.html">發現 bug</a>
382382

0 commit comments

Comments
 (0)