Christian Harries
f695eca60c
gh-86802: Fix asyncio memory leak; shielded task exceptions log once through the exception handler (gh-134331)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2025-05-20 17:14:27 +02:00
Yuki Kobayashi
f3acbb72ff
gh-101100: Fix Sphinx warnings in library/decimal.rst
( #134303 )
2025-05-20 17:46:13 +03:00
Bas Bloemsaat
5ab66a882d
gh-62824: Add alias for iso-8859-8-i which is the same as iso-8859-8 (gh-134306)
...
Co-authored-by: David Goncalves <davegoncalves@gmail.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2025-05-20 15:14:02 +02:00
Richard Hansen
3246ea514d
gh-75459: Doc: C API: Improve object life cycle documentation (GH-125962)
...
* Add "cyclic isolate" to the glossary.
* Add a new "Object Life Cycle" page.
* Improve docs for related API, with special focus on cross-references and warnings
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-05-20 14:25:50 +02:00
abstractedfox
306f9e04e5
gh-131357: Add tests for zero-sized bytes objects in test_bytes.py ( #134234 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-05-20 12:24:27 +00:00
Serhiy Storchaka
a31bbc951a
gh-53189: Document peculiarities of InteractiveConsole in relation to pickle (GH-123069)
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-05-20 14:08:40 +02:00
Sergey B Kirpichev
175ba3639f
gh-72902: improve Fraction constructor speed for typical inputs (GH-134320)
...
This moves abc check for numbers.Rational - down.
2025-05-20 12:47:27 +03:00
Bénédikt Tran
e007e62ba7
gh-125843: fix test_curses.test_attributes
on x86-64 macOS ( #134252 )
...
While some `libcurses` functions are meant to return OK on success,
this is not always the case for all implementations. As such, we relax
the checks on the return values and allow any non-ERR value to be
considered equivalent to OK.
2025-05-20 09:15:39 +00:00
Guido van Rossum
28625d4f95
gh-128307: Update what's new in 3.13 and 3.14 with create_task changes of asyncio ( #134304 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-05-20 14:11:22 +05:30
Serhiy Storchaka
e29171bf8a
Clean up test_posixpath (GH-134315)
...
* Ensure that created files and dirs are always removed after test.
Now addCleanup() does not conflict with tearDown().
* Use os_helper.unlink() and os_helper.rmdir().
* Import TESTFN from os_helper.
2025-05-20 10:51:44 +03:00
Inada Naoki
652d6938ef
gh-133374: fix test_python_legacy_windows_stdio (GH-134080)
2025-05-20 13:33:54 +09:00
Gustaf
e3dda8f818
gh-133940: test_strftime incorrectly calculates expected week (GH-134281)
...
Let the system determine the correct tm_wday and tm_isdst.
2025-05-19 17:54:48 -07:00
Alek Binion
66aaad6103
gh-134201: Expand explanation of Base85 encodings in base64 docs ( #134288 )
...
Explain history of de-facto standard and how to pick between the two Base-85 encoding functions in the base-64 module.
---------
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2025-05-19 18:59:06 -05:00
Stan Ulbrych
46d7c114d8
gh-132983: Add zstd version info to test.pythoninfo
( #134230 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-05-20 00:06:04 +02:00
Tomas R.
a7f317d730
GH-131798: Add _POP_CALL_TWO_LOAD_CONST_INLINE_BORROW (GH-134268)
2025-05-19 18:00:53 -04:00
Bénédikt Tran
1fbb0603a8
gh-131178: remove runtime tests for http.server
CLI ( #134287 )
...
The runtime behavior of `http.server` CLI is hard to test on an arbitrary platform.
As such, tests asserting the correctness of `python -m http.server` are temporarily
removed and will be rewritten later once a universal solution has been found.
2025-05-19 21:59:14 +00:00
Tom Wang
8421b03b16
gh-134235: Import Autocomplete for Builtin Modules (GH-134277)
...
* added enhancement auto completing import with sys builtins
---------
Co-authored-by: Hunter <hyoung3@gmail.com>
2025-05-19 14:21:30 -07:00
John Keith Hohm
470941782f
gh-88994: Change datetime.datetime.now
to half-even rounding ( #134258 )
...
Change `datetime.datetime.now` to half-even rounding
for consistency with `datetime.fromtimestamp`.
2025-05-19 22:48:55 +02:00
Diego Russo
42d03f3933
GH-131798: Split CALL_LIST_APPEND into several uops (GH-134240)
2025-05-19 15:48:55 -04:00
Sahil Shah
92f85ff3a0
gh-80184: Set getattr(socket, "SOMAXCONN", 5) as the default queue size for TCPServer (GH-134249)
...
socketserver.TCPServer default queue size becomes SOMAXCONN instead of 5 when possible.
2025-05-19 19:28:09 +00:00
Peter Bierma
27bd08273c
Revert "gh-128639: Don't assume one thread in subinterpreter finalization (gh-128640)" (gh-134256)
...
This reverts commit 9859791f9e
.
The original change broke the iOS and android buildbots, where the tests are run single-process.
2025-05-19 12:22:05 -06:00
Serhiy Storchaka
871d269875
gh-117596: Add more tests for os.path with invalid paths (GH-134189)
2025-05-19 21:17:58 +03:00
Victor Stinner
e79f640eb6
Simplify interp_look_up_id() ( #134257 )
...
Don't use PyInterpreterState_GetID() but get directly the interpreter
'id' member which cannot fail.
2025-05-19 18:09:10 +00:00
Semyon Moroz
71c42b778d
gh-126883: Add check that timezone fields are in range for datetime.fromisoformat
( #127242 )
...
It was previously possible to specify things like `+00:90:00` which would be equivalent to `+01:30:00`, but is not a valid ISO8601 string.
---------
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
2025-05-19 14:07:11 -04:00
Tomas R.
8d490b3687
GH-131798: Narrow the return type of isinstance for some known arguments in the JIT (GH-133172)
2025-05-19 13:19:24 -04:00
Peter Bierma
9859791f9e
gh-128639: Don't assume one thread in subinterpreter finalization (gh-128640)
...
Incidentally, this also fixed the warning not showing up if a subinterpreter wasn't
cleaned up via _interpreters.destroy. I had to update some of the tests as a result.
2025-05-19 10:24:08 -06:00
László Kiss Kollár
c4ad92e155
Fix typo in get_stack_trace docstring ( #134246 )
2025-05-19 16:07:39 +00:00
sobolevn
a36ce264a9
GH-134236: make regen-all (GH-134237)
2025-05-19 11:39:43 -04:00
naya451
c45e661226
gh-131505: Move len boundary assertions before using len. ( #131536 )
...
Move len boundary assertions before using len.
2025-05-19 08:10:23 -07:00
Dino Viehland
3fa30d9e9c
gh-128045: Syncs w/ latest opcode metadata ( #134231 )
...
Fix opcode metadata
2025-05-19 11:08:50 -04:00
Duprat
de70614c13
gh-132795: Add docs for multiprocessing.Semaphore.locked
( #133299 )
2025-05-19 20:06:09 +05:30
Jessica Temporal
faebf87b37
gh-134214: Fix test case in pyrepl (gh-134223)
2025-05-19 16:26:04 +02:00
Dino Viehland
cc9add695d
gh-128045: Mark unknown opcodes as deopting to themselves ( #128044 )
...
* Mark unknown opcodes as deopting to themselves
2025-05-19 10:15:16 -04:00
Loïc Simon
71ea6a6798
gh-134158: Fix PyREPL coloring of double braces in f/t-strings (gh-134159)
...
Co-authored-by: Loïc Simon <loic.simon@napta.io>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2025-05-19 16:12:23 +02:00
Étienne Pelletier
b22460c44d
gh-125225: Fix column misalignment in help('topics') output (gh-125226)
...
The 'help("topics")' output was misaligned due to "ASSIGNMENTEXPRESSIONS"
exceeding the implicit maximum default column width of 19 characters.
Reduced the number of columns from 4 to 3 in the listtopics()
function to allow more space for longer topic names.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2025-05-19 16:10:17 +02:00
Bénédikt Tran
ee36db5500
gh-125843: indicate which C function caused a curses.error
( #125844 )
...
- Rename error helpers with a `curses_set_error_*` prefix instead of `PyCurses*`.
- Cleanly report both NULL and ERR cases.
- Raise `curses.error` in `is_linetouched` instead of a `TypeError`.
2025-05-19 15:53:39 +02:00
Kirill Podoprigora
c31547a591
gh-134097: Print number of refs & blocks after each statement in new REPL (gh-134136)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2025-05-19 15:30:43 +02:00
Serhiy Storchaka
44b73d3cd4
gh-122055: Clarify documentation for empty matches in RE (GH-133169)
2025-05-19 15:27:50 +02:00
ggqlq
605022aeb6
gh-131178: Add tests for http.server
command-line interface ( #132540 )
2025-05-19 12:15:04 +00:00
Steve Dower
986c367028
gh-133779: Revert Windows generation of pyconfig.h and go back to a static header. (GH-133966)
...
Extension builders must specify Py_GIL_DISABLED if they want to link to the free-threaded builds.
This was usually the case already, but this change guarantees it in all circumstances.
2025-05-19 11:35:22 +01:00
BecoKo
d55e11b804
gh-76023: Make os.path.realpath to ignore WinError 1005 in non-strict mode (GH-128328)
2025-05-19 09:33:15 +00:00
Bénédikt Tran
d6dc33ed80
gh-134087: enforce signature of threading.RLock
( #134178 )
...
- Reject positional and keyword arguments in `_thread.RLock.__new__`.
- Convert `_thread.lock.__new__` to AC.
2025-05-19 11:26:14 +02:00
Serhiy Storchaka
9983c7d441
gh-133890: Handle UnicodeEncodeError in tarfile (GH-134147)
...
UnicodeEncodeError is now handled the same way as OSError during
TarFile member extraction.
2025-05-18 22:21:06 +03:00
Serhiy Storchaka
5cbc8c632e
gh-133889: Only show the path of the URL in the SimpleHTTPRequestHandler page (GH-134135)
...
The query and fragment are ambiguous and not used.
2025-05-18 18:09:51 +00:00
da-woods
bb32f3c698
document Py_VISIT
as a macro in the docs ( #133688 )
2025-05-18 21:58:43 +05:30
Nybblista
2cc99b3dd3
Docs: Fix the _PyGenObject_HEAD
reference in the InternalDocs/generators.md
( #133739 )
2025-05-18 21:56:58 +05:30
Dave Jagoda
a1e2e6ca91
Fix example in Doc/howto/functional.rst ( #133978 )
2025-05-18 21:56:17 +05:30
Yongzi Li
4ce91871a9
fix indent in controlflow.rst
docs ( #134008 )
2025-05-18 21:51:02 +05:30
Stan Ulbrych
b1c33294ca
gh-134114: Clarify FAQ note about dictonary keys ( #134118 )
2025-05-18 15:59:20 +00:00
J. Nick Koston
53da1e8c8c
gh-134173: optimize state transfer between concurrent.futures.Future
and asyncio.Future
( #134174 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-05-18 21:26:20 +05:30