Erlend E. Aasland
8abd6cef68
gh-115765: Upgrade to GNU Autoconf 2.72 ( #128411 )
2025-01-03 11:37:54 +00:00
Stan Ulbrych
bb73426caf
gh-108202: Document calendar.TextCalendar formatting helpers ( #127608 )
...
Document the following TextCalendar methods:
- formatday()
- formatmonthname()
- formatweekday()
- formatweekheader()
2025-01-03 10:57:15 +01:00
Nathan Goldbaum
e7adeecc2b
gh-128426: Mention PySequence_Fast in free-threading C API HOWTO ( #128428 )
2025-01-03 13:10:24 +05:30
Hugo van Kemenade
c9d2bc6d7f
Revert "Doc: Show object descriptions in the table of contents ( #125757 )" ( #128406 )
2025-01-02 14:35:00 +00:00
Sebastian Pipping
8e48a6edc7
gh-126624: Expose error code `XML_ERROR_NOT_STARTED
` of Expat >=2.6.4 ( #126625 )
...
Expose error code ``XML_ERROR_NOT_STARTED`` in `xml.parsers.expat.errors` which was
introduced in Expat 2.6.4.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-01-02 14:54:38 +02:00
Serhiy Storchaka
a3711d1541
gh-124130: Fix a bug in matching regular expression \B in empty string (GH-127007)
2025-01-02 12:11:21 +00:00
Shin-myoung-serp
e1baa778f6
gh-95371: Add support for other image formats(e.g. PNG) to the turtle… ( #95378 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2025-01-02 11:45:07 +02:00
abkmystery
60c6518469
gh-128349: Use .. data::
instead of .. class::
for pre-defined decimal Context
objects ( #128379 )
2025-01-02 09:20:31 +02:00
Kirill Podoprigora
d903b17499
gh-121676: Raise a `DeprecationWarning
if the Python implementation of
functools.reduce
is called with
function or
sequence` as a keyword args ( #121677 )
...
Python implementation of `functools` allows calling `reduce`
with `function` or `sequence` as keyword args. This doesn't
match behavior of our C accelerator and our documentation
for `functools.reduce` states that `function`and `sequence`
are positional-only arguments.
Now calling a Python implementation of `functools.reduce`
with `function` or `sequence` as keyword args would raise
a `DeprecationWarning` and is planned to be prohibited in
Python 3.16.
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-01-01 13:36:47 +02:00
Stan Ulbrych
c5438fdf47
Reword about.rst
to not limit Sphinx ( #128325 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-12-31 23:22:33 +02:00
Hugo van Kemenade
6dbace397f
gh-128317: Document calendar.TextCalendar.formatweek
( #128353 )
2024-12-30 19:25:39 +02:00
Erlend E. Aasland
2bd5a7ab0f
Docs: correctly markup sys.monitoring "What's New" entry ( #128346 )
...
The sys.monitoring entry was added with commit d2f1d917e
.
2024-12-30 14:53:40 +02:00
Bénédikt Tran
7e819ce0f3
gh-123424: add ZipInfo._for_archive
to set suitable default properties ( #123429 )
...
---------
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2024-12-29 18:30:53 +00:00
Thomas Grainger
c9159b7436
expand the asyncio.run_coroutine_threadsafe
recipes ( #127576 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2024-12-29 11:52:29 +05:30
Calvin Bui
f9a5a3a3ef
gh-128192: support HTTP sha-256 digest authentication as per RFC-7617 (GH-128193)
...
support sha-256 digest authentication
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2024-12-28 21:05:34 +00:00
Kumar Aditya
64173cd6f2
gh-127949: make deprecation of policy system more prominent ( #128290 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-12-27 15:13:41 +00:00
Damien
08a0728d6c
gh-125887: Update PyObject_HasAttr exception behavior ( #125907 )
...
Update PyObject_HasAttr exception behavior
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2024-12-26 17:57:55 -08:00
Thomas Grainger
9ddc388527
gh-124761: add socket.SO_REUSEPORT_LB
( #124961 )
2024-12-26 20:20:20 +05:30
Yuki Kobayashi
8a26c7b2af
Docs: Fix comment out in c-api/typeobj.rst
( #128266 )
2024-12-26 20:09:44 +05:30
Kumar Aditya
3eb746a7b9
gh-127949: add docs for asyncio policy deprecation ( #128269 )
2024-12-26 20:02:23 +05:30
Will Childs-Klein
418114c139
gh-128035: Add ssl.HAS_PHA to detect libssl PHA support (GH-128036)
...
* Add ssl.HAS_PHA to detect libssl Post-Handshake-Auth support
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-12-24 18:29:27 +00:00
Bogdan Romanyuk
7985d460c7
gh-128227: Regenerate Doc/requirements-oldest-sphinx.txt
( #128228 )
2024-12-24 20:00:24 +02:00
Kumar Aditya
9fce906825
gh-127949: deprecate asyncio.set_event_loop
( #128218 )
...
Deprecate `asyncio.set_event_loop` to be removed in Python 3.16.
2024-12-24 19:24:28 +05:30
Kumar Aditya
a391d80f4b
gh-127949: deprecate asyncio policy classes ( #128216 )
2024-12-24 17:30:26 +05:30
Alyssa Coghlan
831b6de6d7
gh-126180: Remove getopt and optparse deprecation notices (GH-126227)
...
* Remove getopt and optparse deprecation notices
* Add new docs sections for command line app helper libraries
* Add guidance on choosing a CLI parsing library to the optparse docs
* Link to the new guidance from the argparse and getopt docs
* Reword intro in docs section for superseded stdlib modules
* Reframe the optparse->argparse guide as a migration guide
rather than as an upgrade guide
---------
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-12-23 14:17:19 +10:00
Gregory P. Smith
228f275737
gh-126664: revert: Use else
instead of finally
in docs explaining "with" ( #128169 )
...
Revert "gh-126664: Use `else` instead of `finally` in "The with statement" documentation. (GH-126665)"
This reverts commit 25257d61cf
.
2024-12-22 09:47:41 +00:00
Petr Viktorin
2a66dd33df
gh-112328: Make EnumDict usable on its own and document it (GH-123669)
...
Co-authored-by: Rafi <rafi.promit@gmail.com>
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2024-12-20 11:40:58 -08:00
shallow-beach
5a584c8f54
Python Tutorial typo fix ( #128077 )
2024-12-20 18:09:56 +01:00
Md Rokibul Islam
39e69a7cd5
gh-112328: Document EnumDict in docs and release notes (GH-121720)
...
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2024-12-19 15:38:42 -08:00
mpage
255762c09f
gh-127274: Defer nested methods ( #128012 )
...
Methods (functions defined in class scope) are likely to be cleaned
up by the GC anyway.
Add a new code flag, `CO_METHOD`, that is set for functions defined
in a class scope. Use that when deciding to defer functions.
2024-12-19 13:03:14 -08:00
Mark Shannon
d2f1d917e8
GH-122548: Implement branch taken and not taken events for sys.monitoring (GH-122564)
2024-12-19 16:59:51 +00:00
Sam Gross
7b811d0562
gh-128008: Add PyWeakref_IsDead()
(GH-128009)
...
The `PyWeakref_IsDead()` function tests if a weak reference is dead
without any side effects. Although you can also detect if a weak
reference is dead using `PyWeakref_GetRef()`, that function returns a
strong reference that must be `Py_DECREF()`'d, which can introduce side
effects if the last reference is concurrently dropped (at least in the
free threading build).
2024-12-19 16:17:15 +01:00
RUANG (James Roy)
ea578fc6d3
gh-127688: Add SCHED_DEADLINE
and SCHED_NORMAL
constants to os
module (GH-127689)
2024-12-19 14:51:21 +01:00
Kumar Aditya
19c5134d57
gh-122706: fix docs for asyncio ssl sockets ( #128092 )
2024-12-19 12:45:36 +00:00
Kumar Aditya
dbd08fb60d
gh-127949: deprecate asyncio.get_event_loop_policy
( #128053 )
...
This deprecates `asyncio.get_event_loop_policy` and will be removed in Python 3.16.
2024-12-18 18:04:20 +05:30
Thomas Grainger
0581e3f52b
gh-127174: add docs for asyncio.get_event_loop replacements ( #127640 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2024-12-18 13:50:05 +05:30
Kumar Aditya
5892853fb7
gh-127949: deprecate asyncio.set_event_loop_policy
( #128024 )
...
First step towards deprecating the asyncio policy system.
This deprecates `asyncio.set_event_loop_policy` and will be removed in Python 3.16.
2024-12-18 11:35:29 +05:30
Hugo van Kemenade
401bfc69d1
Python 3.14.0a3
2024-12-17 11:50:39 +02:00
Gugubo
e4981e33b8
Fix typo in itertools docs (gh-127995)
2024-12-16 11:08:25 -06:00
Yuki Kobayashi
52d552cda7
gh-127896: Add missing documentation of PySequence_In
(GH-127979)
...
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2024-12-16 14:56:04 +01:00
Steve C
7900a85019
Clarify ast docs to use a less confusing example for ast.ParamSpec
( #127955 )
...
Fix typo in ast docs: ParamSpec defaults
2024-12-15 12:28:43 +00:00
Sergey B Kirpichev
e2325c9db0
gh-127852: add remark about ',' separator ( #127854 )
...
Specify that it is valid for floats and ints with 'd' presentation and an error otherwise.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-12-14 08:28:26 -05:00
Raymond Hettinger
292067fbc9
Minor readability improvements for the itertools recipes (gh-127928)
2024-12-13 12:12:49 -06:00
Bénédikt Tran
8bc18182a7
gh-127691: add type checks when using PyUnicodeError
objects (GH-127694)
2024-12-13 17:16:22 +01:00
Victor Stinner
6446408d42
gh-102471, PEP 757: Add PyLong import and export API ( #121339 )
...
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-12-13 14:24:48 +01:00
Viktor Kálmán
11ff3286b7
link to the correct output method in documentation ( #127857 )
2024-12-13 14:57:02 +05:30
Miro Hrončok
58942a07df
Document PyObject_SelfIter ( #127861 )
2024-12-13 14:56:22 +05:30
Daniel Haag
0cbc19d59e
Fix typo in traceback docs ( #127884 )
2024-12-12 21:43:44 +00:00
Raymond Hettinger
8bbd379ee3
Simplify and speed-up an itertools recipe (gh-127848)
2024-12-11 21:24:56 -06:00
Peter Bierma
dd9da738ad
gh-118915: C API: Document frame locals proxies. ( #127720 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-12-11 17:28:44 +01:00