Skip to content

Commit b84d3cd

Browse files
committed
Merge branch '3.15' of https://github.com/python/cpython into 3.15
2 parents 9e955d5 + e09f49e commit b84d3cd

8 files changed

Lines changed: 25 additions & 12 deletions

File tree

Doc/library/asyncio-task.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ and reliable way to wait for all tasks in the group to finish.
377377

378378
* call it from the task group body based on some condition or event
379379
* pass the task group instance to child tasks via :meth:`create_task`, allowing a child
380-
task to conditionally cancel the entire entire group
380+
task to conditionally cancel the entire group
381381
* pass the task group instance or bound :meth:`cancel` method to some other task *before*
382382
opening the task group, allowing remote cancellation
383383

Doc/library/calendar.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,9 @@ For simple text calendars this module provides the following functions.
400400
*month* (``1``--``12``), *day* (``1``--``31``).
401401

402402

403-
.. function:: weekheader(n)
403+
.. function:: weekheader(width)
404404

405-
Return a header containing abbreviated weekday names. *n* specifies the width in
405+
Return a header containing abbreviated weekday names. *width* specifies the width in
406406
characters for one weekday.
407407

408408

@@ -430,12 +430,12 @@ For simple text calendars this module provides the following functions.
430430
of the :class:`TextCalendar` class.
431431

432432

433-
.. function:: prcal(year, w=0, l=0, c=6, m=3)
433+
.. function:: prcal(theyear, w=0, l=0, c=6, m=3)
434434

435435
Prints the calendar for an entire year as returned by :func:`calendar`.
436436

437437

438-
.. function:: calendar(year, w=2, l=1, c=6, m=3)
438+
.. function:: calendar(theyear, w=2, l=1, c=6, m=3)
439439

440440
Returns a 3-column calendar for an entire year as a multi-line string using
441441
the :meth:`~TextCalendar.formatyear` of the :class:`TextCalendar` class.

Doc/library/concurrent.interpreters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ thread) and calling a function in that execution context.
2121
For concurrency, interpreters themselves (and this module) don't
2222
provide much more than isolation, which on its own isn't useful.
2323
Actual concurrency is available separately through
24-
:mod:`threads <threading>` See `below <interp-concurrency_>`_
24+
:mod:`threads <threading>` -- see `below <interp-concurrency_>`_.
2525

2626
.. seealso::
2727

Doc/library/filecmp.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ The :mod:`!filecmp` module defines the following functions:
3434
file changes. The entire cache may be cleared using :func:`clear_cache`.
3535

3636

37-
.. function:: cmpfiles(dir1, dir2, common, shallow=True)
37+
.. function:: cmpfiles(a, b, common, shallow=True)
3838

39-
Compare the files in the two directories *dir1* and *dir2* whose names are
39+
Compare the files in the two directories *a* and *b* whose names are
4040
given by *common*.
4141

4242
Returns three lists of file names: *match*, *mismatch*,

Doc/library/functions.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,10 @@ are always available. They are listed here in alphabetical order.
611611
untrusted user-supplied input will lead to security vulnerabilities.
612612

613613
The *source* argument is parsed and evaluated as a Python expression
614-
(technically speaking, a condition list) using the *globals* and *locals*
615-
mappings as global and local namespace. If the *globals* dictionary is
616-
present and does not contain a value for the key ``__builtins__``, a
614+
(technically speaking, an :ref:`expression list <exprlists>`)
615+
using the *globals* and *locals* mappings as global and local namespace.
616+
If the *globals* dictionary is present and does not contain a value for the
617+
key ``__builtins__``, a
617618
reference to the dictionary of the built-in module :mod:`builtins` is
618619
inserted under that key before *source* is parsed.
619620
Overriding ``__builtins__`` can be used to restrict or change the available
@@ -633,6 +634,9 @@ are always available. They are listed here in alphabetical order.
633634
>>> eval('x+1')
634635
2
635636

637+
>>> eval("1, 2")
638+
(1, 2)
639+
636640
This function can also be used to execute arbitrary code objects (such as
637641
those created by :func:`compile`). In this case, pass a code object instead
638642
of a string. If the code object has been compiled with ``'exec'`` as the

Doc/library/wave.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ Wave_read Objects
125125
This is one of :data:`WAVE_FORMAT_PCM`,
126126
:data:`WAVE_FORMAT_IEEE_FLOAT`, or :data:`WAVE_FORMAT_EXTENSIBLE`.
127127

128+
.. versionadded:: 3.15
129+
128130

129131
.. method:: getcomptype()
130132

@@ -284,6 +286,8 @@ Wave_write Objects
284286

285287
Return the current frame format code.
286288

289+
.. versionadded:: 3.15
290+
287291

288292
.. method:: setparams(tuple)
289293

Doc/whatsnew/3.15.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ importlib.metadata
12251225
would return an empty ``PackageMetadata`` object as if the file
12261226
was present but empty. Now, a ``MetadataNotFound`` exception is raised.
12271227
See `importlib_metadata#493 <https://github.com/python/importlib_metadata/issues/493>`_
1228-
for background and rationale and and :gh:`143387` for rationale on the
1228+
for background and rationale and :gh:`143387` for rationale on the
12291229
compatibility concerns.
12301230
(Contributed by Jason R. Coombs.)
12311231

Lib/test/test_calendar.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,11 @@ def test_deprecation_warning(self):
554554
"The 'January' attribute is deprecated, use 'JANUARY' instead"
555555
):
556556
calendar.January
557+
with self.assertWarnsRegex(
558+
DeprecationWarning,
559+
"The 'February' attribute is deprecated, use 'FEBRUARY' instead"
560+
):
561+
calendar.February
557562

558563
def test_isleap(self):
559564
# Make sure that the return is right for a few years, and

0 commit comments

Comments
 (0)