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
Peter Bierma
d5d84c3f13
gh-127791: Fix, document, and test PyUnstable_AtExit ( #127793 )
2024-12-11 12:14:04 +01:00
Russell Keith-Magee
51216857ca
gh-126821: Add versionadded annotation to use_system_logger feature. ( #127755 )
...
Add versionadded annotation to use_system_logger feature.
2024-12-11 05:32:04 +08:00
Yuki Kobayashi
035f512046
Docs: Fix indents in xmlrpc.client.rst ( #127782 )
2024-12-10 19:35:00 +02:00
Victor Stinner
c91ccbe4ac
gh-59705: Set OS thread name when Thread.name is changed ( #127702 )
...
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2024-12-10 17:33:11 +01:00
Yuki Kobayashi
8dbdbad6e0
gh-101100: Fix sphinx warnings in whatsnew/3.0.rst ( #127662 )
2024-12-10 12:22:37 +02:00
Bénédikt Tran
4331832db0
gh-125420: implement Sequence.count API on memoryview objects ( #125443 )
2024-12-10 10:12:33 +00:00
Hugo van Kemenade
212448b162
gh-127718: Add colour to test.regrtest output ( #127719 )
2024-12-10 09:44:15 +02:00
Bénédikt Tran
58c753827a
gh-125420: implement Sequence.index API on memoryview objects ( #125446 )
2024-12-09 18:48:38 -08:00
Russell Keith-Magee
2041a95e68
gh-126925: Modify how iOS test results are gathered ( #127592 )
...
Adds a `use_system_log` config item to enable stdout/stderr redirection for
Apple platforms. This log streaming is then used by a new iOS test runner
script, allowing the display of test suite output at runtime. The iOS test
runner script can be used by any Python project, not just the CPython test
suite.
2024-12-09 13:28:57 +08:00
Yuki Kobayashi
77a61c0465
gh-101100: amend references starting with !~ in gh-127054 ( #127684 )
2024-12-06 16:09:20 +02:00
Barney Gale
8b3cccf3f9
GH-125413: Revert addition of pathlib.Path.scandir() method ( #127377 )
...
Remove documentation for `pathlib.Path.scandir()`, and rename the method to
`_scandir()`. In the private pathlib ABCs, make `iterdir()` abstract and
call it from `_scandir()`.
It's not worthwhile to add this method at the moment - see discussion:
https://discuss.python.org/t/ergonomics-of-new-pathlib-path-scandir/71721
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2024-12-05 21:39:43 +00:00
Maciej Olko
657d0e99aa
[Docs] GDB howto: Fix block type of a cast example ( #127621 )
2024-12-05 22:52:58 +02:00
Hugo van Kemenade
23f2e8f13c
gh-127221: Add colour to unittest output ( #127223 )
...
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
2024-12-05 21:10:46 +02:00
Bénédikt Tran
67b9a5331a
gh-127413: allow to show specialized bytecode via dis CLI ( #127414 )
2024-12-05 15:01:59 +00:00
Victor Stinner
1ef6e8ca3f
gh-119182: Complete PyUnicodeWriter documentation ( #127607 )
2024-12-05 10:37:14 +01:00
RUANG (James Roy)
6bc3e830a5
gh-127481: Add EPOLLWAKEUP to the select module (GH-127482)
2024-12-04 14:30:38 +01:00
Bénédikt Tran
bc0f2e9459
gh-123378: Ensure results of PyUnicode*Error_Get{Start,End} are clamped (GH-123380)
...
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2024-12-04 14:13:52 +01:00
Raymond Hettinger
7f882c88cf
Itertool recipe additions (gh-127483)
2024-12-03 18:20:01 -06:00
Neil Schemenauer
fc5a0dc224
gh-127271: Replace use of PyCell_GET/SET (gh-127272)
...
* Replace uses of `PyCell_GET` and `PyCell_SET`. These macros are not
safe to use in the free-threaded build. Use `PyCell_GetRef()` and
`PyCell_SetTakeRef()` instead.
* Since `PyCell_GetRef()` returns a strong rather than borrowed ref, some
code restructuring was required, e.g. `frame_get_var()` returns a strong
ref now.
* Add critical sections to `PyCell_GET` and `PyCell_SET`.
* Move critical_section.h earlier in the Python.h file.
* Add `PyCell_GET` to the free-threading howto table of APIs that return
borrowed refs.
* Add additional unit tests for free-threading.
2024-12-03 10:33:06 -08:00
Tomas R.
8ba9f5bca9
gh-127347: Document traceback.print_list ( #127348 )
...
Previously, `traceback.print_list` didn't have a documentation entry and was not exposed in `traceback.__all__`. Now it has a documentation entry and is exposed in `__all__`.
2024-12-03 18:08:39 +02:00
Jun Komoda
412e11fe6e
gh-127255: Make CopyComPointer public and add to ctypes doc. (GH-127275)
2024-12-03 16:35:08 +01:00
RUANG (James Roy)
84ff1313d0
gh-126585: Add EHWPOISON error code ( #126586 )
2024-12-03 12:45:50 +00:00
Petr Viktorin
35d37d6592
gh-127253: Note that Stable ABI is about ABI stability (GH-127254)
2024-12-03 13:30:27 +01:00
Alexander Stepchenko
8c3fd1f245
docs(logging): fix phrasing from "operation on" to "operate on" ( #127543 )
2024-12-03 12:22:12 +05:30
Yuki Kobayashi
3e812253ab
gh-101100: Fix Sphinx warnings about list methods ( #127054 )
2024-12-02 15:51:35 +02:00
Giovanni Siragusa
31f16e427b
gh-109523: Raise a BlockingIOError if reading text from a non-blocking stream cannot immediately return bytes. (GH-122933)
2024-12-02 14:18:30 +01:00
Bénédikt Tran
1f8267b85d
gh-127443: Fix some entries in Doc/data/refcounts.dat ( #127451 )
...
Fix incorrect entries in `Doc/data/refcounts.dat`
2024-12-02 10:21:00 +02:00
Zhikang Yan
7ea523f47c
gh-126899: Add **kw to tkinter.Misc.after and tkinter.Misc.after_idle ( #126900 )
...
---------
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-12-01 19:29:27 +00:00
Rafael Fontenelle
a880358af0
gh-127356: Fix prepend doctrees directory for gettext target ( #127357 )
2024-12-01 11:15:44 +02:00
Yuki Kobayashi
33ce8dcf79
Docs: Fix incorrect indents in c-api/type.rst ( #127449 )
2024-11-30 15:01:15 +00:00
Ollanta Cuba Gyllensten
15d6506d17
Link to correct class methods in asyncio primitives docs ( #127270 )
2024-11-29 16:20:40 +00:00
biggus-developerus
3afb639f39
fix param type in PyObject_HasAttrWithError (docs) ( #127403 )
2024-11-29 10:53:34 +00:00
Илья Любавский
dd3a87d2a8
gh-127303: Add docs for token.EXACT_TOKEN_TYPES ( #127304 )
...
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-11-29 04:00:50 -05:00
Jun Komoda
49fee592a4
Touch up docs for ctypes.FormatError & WinError (GH-127210)
...
Reformat paragraphs, add backquotes, and directives.
2024-11-28 16:59:47 +01:00