Skip to content

Commit d1963bc

Browse files
Deploy preview for PR 1231 🛫
1 parent 20cc285 commit d1963bc

586 files changed

Lines changed: 5614 additions & 5564 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/howto/mro.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The Python 2.3 Method Resolution Order
1010
The Method Resolution Order discussed here was *introduced* in Python 2.3,
1111
but it is still used in later versions -- including Python 3.
1212

13-
By `Michele Simionato <https://www.phyast.pitt.edu/~micheles/>`__.
13+
By `Michele Simionato <https://github.com/micheles>`__.
1414

1515
:Abstract:
1616

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ listed below:
131131
The below functions when called create a modal, native look-and-feel dialog,
132132
wait for the user's selection, and return it.
133133
The exact return value depends on the function (see below); when the dialog is
134-
cancelled it is an empty string, an empty tuple, an empty list or ``None``.
134+
cancelled it is an empty string, an empty tuple or ``None``.
135+
The precise type of this empty value may vary between platforms and Tk
136+
versions, so test the result for truth rather than comparing it with a
137+
specific value.
135138

136139
.. function:: askopenfile(mode="r", **options)
137140
askopenfiles(mode="r", **options)
@@ -140,7 +143,7 @@ cancelled it is an empty string, an empty tuple, an empty list or ``None``.
140143
:func:`askopenfile` returns the opened file object, or ``None`` if the
141144
dialog is cancelled.
142145
:func:`askopenfiles` returns a list of the opened file objects, or an empty
143-
list if cancelled.
146+
tuple if cancelled.
144147
The files are opened in mode *mode* (read-only ``'r'`` by default).
145148

146149
.. function:: asksaveasfile(mode="w", **options)

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

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,7 @@ Notes for type implementers
9090

9191
Implementers should be careful to make equal numbers equal and hash
9292
them to the same values. This may be subtle if there are two different
93-
extensions of the real numbers. For example, :class:`fractions.Fraction`
94-
implements :func:`hash` as follows::
95-
96-
def __hash__(self):
97-
if self.denominator == 1:
98-
# Get integers right.
99-
return hash(self.numerator)
100-
# Expensive check, but definitely correct.
101-
if self == float(self):
102-
return hash(float(self))
103-
else:
104-
# Use tuple's hash to avoid a high collision rate on
105-
# simple fractions.
106-
return hash((self.numerator, self.denominator))
93+
extensions of the real numbers. See also :ref:`numeric-hash`.
10794

10895

10996
Adding More Numeric ABCs

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

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,11 +1058,11 @@ Base and mixin classes
10581058
:class:`int`.
10591059
Raise :exc:`ValueError` if *s* is not a valid integer.
10601060

1061-
.. method:: getvar(name='PY_VAR')
1061+
.. method:: getvar(name)
10621062

10631063
Return the value of the Tcl global variable named *name*.
10641064

1065-
.. method:: setvar(name='PY_VAR', value='1')
1065+
.. method:: setvar(name, value)
10661066

10671067
Set the Tcl global variable named *name* to *value*.
10681068

@@ -1494,10 +1494,10 @@ Base and mixin classes
14941494
This updates the display of windows, for example after geometry changes,
14951495
but does not process events caused by the user.
14961496

1497-
.. method:: waitvar(name='PY_VAR')
1497+
.. method:: waitvar(name)
14981498
:no-typesetting:
14991499

1500-
.. method:: wait_variable(name='PY_VAR')
1500+
.. method:: wait_variable(name)
15011501

15021502
Wait until the Tcl variable *name* is modified, continuing to process
15031503
events in the meantime so that the application stays responsive.
@@ -2591,7 +2591,8 @@ Base and mixin classes
25912591
Make *widget* a stand-alone top-level window, decorated by the window
25922592
manager with a title bar and so on.
25932593
Only :class:`Frame`, :class:`LabelFrame` and :class:`Toplevel` widgets
2594-
may be used; passing any other widget type raises an error.
2594+
may be used (the :mod:`tkinter.ttk` versions are **not** accepted);
2595+
passing any other widget type raises an error.
25952596
:meth:`wm_manage` is an alias of :meth:`!manage`.
25962597

25972598
.. versionadded:: 3.3
@@ -3240,6 +3241,14 @@ Toplevel widgets
32403241
profile files is the :envvar:`HOME` environment variable or, if that
32413242
isn't defined, then :data:`os.curdir`.
32423243

3244+
.. note::
3245+
3246+
On Windows, creating a Tcl interpreter (by instantiating :class:`Tk` or
3247+
calling :func:`Tcl`) sets the :envvar:`HOME` environment variable for
3248+
the process, if it is not already set, to ``%HOMEDRIVE%%HOMEPATH%`` (or
3249+
:envvar:`USERPROFILE`, or ``c:\``). This is done by Tcl and can affect
3250+
other code that reads :envvar:`HOME`.
3251+
32433252
.. attribute:: tk
32443253

32453254
The Tk application object created by instantiating :class:`Tk`. This

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-
最後更新於 6月 29, 2026 (00:47 UTC)。
359+
最後更新於 6月 30, 2026 (00:45 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-
最後更新於 6月 29, 2026 (00:47 UTC)。
396+
最後更新於 6月 30, 2026 (00:45 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-
最後更新於 6月 29, 2026 (00:47 UTC)。
368+
最後更新於 6月 30, 2026 (00:45 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-
最後更新於 6月 29, 2026 (00:47 UTC)。
580+
最後更新於 6月 30, 2026 (00:45 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-
最後更新於 6月 29, 2026 (00:47 UTC)。
517+
最後更新於 6月 30, 2026 (00:45 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
@@ -996,7 +996,7 @@ <h3>導航</h3>
996996
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
997997
<br>
998998
<br>
999-
最後更新於 6月 29, 2026 (00:47 UTC)。
999+
最後更新於 6月 30, 2026 (00:45 UTC)。
10001000

10011001
<a href="/bugs.html">發現 bug</a>
10021002

0 commit comments

Comments
 (0)