summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-91869: Fix tracing of specialized instructions with extended args (GH-91945)Dennis Sweeney2022-04-289-88/+145
|
* gh-91217: deprecate uu (GH-92009)Brett Cannon2022-04-285-11/+44
| | | Automerge-Triggered-By: GH:brettcannon
* Add note that headers added via urllib.request.add_header are added to ↵Ashwin Ramaswami2022-04-271-1/+2
| | | | redirected requests (#30708)
* gh-84459: Make wording more specific for Path.replace (GH-91853)slateny2022-04-272-2/+2
| | | #84459
* Correct method name typo (#91970)Simon de Vlieger2022-04-271-1/+1
|
* gh-87999: Change warning type for numeric literal followed by keyword (GH-91980)Serhiy Storchaka2022-04-273-12/+26
| | | | | The warning emitted by the Python parser for a numeric literal immediately followed by keyword has been changed from deprecation warning to syntax warning.
* gh-91810: Expand ElementTree.write() tests to use non-ASCII data (GH-91989)Serhiy Storchaka2022-04-271-17/+80
|
* gh-91498: socket: Add TCP_CONNECTION_INFO on macOS (#69256)David CARLIER2022-04-273-0/+8
| | | Fixes GH-91498
* gh-91719: Mark pycore_opcode.h as generated in .gitattributes (#91976)Dennis Sweeney2022-04-271-0/+1
|
* gh-91320: Add _Py_reinterpret_cast() macro (#91959)Victor Stinner2022-04-2710-17/+42
| | | | | | | | | | | | | | Fix C++ compiler warnings about "old-style cast" (g++ -Wold-style-cast) in the Python C API. Use C++ reinterpret_cast<> and static_cast<> casts when the Python C API is used in C++. Example of fixed warning: Include/object.h:107:43: error: use of old-style cast to ‘PyObject*’ {aka ‘struct _object*’} [-Werror=old-style-cast] #define _PyObject_CAST(op) ((PyObject*)(op)) Add _Py_reinterpret_cast() and _Py_static_cast() macros.
* Fix missing `f` prefix on f-strings (GH-91910)Alexander Shadchin2022-04-273-2/+3
|
* gh-68966: Deprecate the mailcap module (#91951)Victor Stinner2022-04-267-7/+28
|
* bpo-21761: Clarify __file__/__cached__ in import reference (GH-31565)slateny2022-04-261-4/+5
| | | Automerge-Triggered-By: GH:brettcannon
* gh-91870: Remove unsupported SRE opcode CALL (GH-91872)Serhiy Storchaka2022-04-266-52/+38
| | | | | | | It was initially added to support atomic groups, but that support was never fully implemented, and CALL was only left in the compiler, but not interpreter and parser. ATOMIC_GROUP is now used to support atomic groups.
* gh-91217: deprecate telnetlib (GH-91958)Brett Cannon2022-04-264-2/+8
|
* gh-91917: Fix test_zipfile on non-UTF-8 locale (GH-91921)Serhiy Storchaka2022-04-261-0/+11
| | | Skip the extraction test if file names are not encodable.
* gh-91916: Fix test_runpy on non-UTF-8 locale (GH-91920)Serhiy Storchaka2022-04-261-2/+1
| | | | | | | | | If use a non-builtin codec, partially implemented in Python (e.g. ISO-8859-15), a new RecursionError (with empty error message) can be raised while handle a RecursionError. Testing for error message was needed to distinguish a recursion error from arbitrary RuntimeError. After introducing RecursionError, it became unnecessary.
* gh-91914: Fix test_curses on non-UTF-8 locale (GH-91919)Serhiy Storchaka2022-04-261-1/+6
|
* gh-91915: Fix test_netrc on non-UTF-8 locale (GH-91918)Serhiy Storchaka2022-04-261-1/+1
|
* gh-91860: Add typing.dataclass_transform (PEP 681) (#91861)Jelle Zijlstra2022-04-263-0/+167
| | | | | | | Copied from typing-extensions (python/typing#1054, python/typing#1120). Documentation is intentionally omitted, so we can focus on getting the runtime part in before the feature freeze.
* gh-91217: deprecate sunau (GH-91866)Brett Cannon2022-04-255-2/+6
|
* gh-91401: Add a failsafe way to disable vfork. (#91490)Gregory P. Smith2022-04-257-10/+70
| | | | | | | | | | | | | | Just in case there is ever an issue with _posixsubprocess's use of vfork() due to the complexity of using it properly and potential directions that Linux platforms where it defaults to on could take, this adds a failsafe so that users can disable its use entirely by setting a global flag. No known reason to disable it exists. But it'd be a shame to encounter one and not be able to use CPython without patching and rebuilding it. See the linked issue for some discussion on reasoning. Also documents the existing way to disable posix_spawn.
* bpo-46907: Update Windows installer to SQLite 3.38.2 (GH-32147)Mariusz Felisiak2022-04-254-3/+4
|
* gh-91719: Add pycore_opcode.h internal header file (#91906)Victor Stinner2022-04-2511-605/+661
| | | | | | | | | | | Move the following API from Include/opcode.h (public C API) to a new Include/internal/pycore_opcode.h header file (internal C API): * EXTRA_CASES * _PyOpcode_Caches * _PyOpcode_Deopt * _PyOpcode_Jump * _PyOpcode_OpName * _PyOpcode_RelativeJump
* gh-64783: Fix signal.NSIG value on FreeBSD (#91929)Victor Stinner2022-04-2511-51/+81
| | | | | | | | | Fix signal.NSIG value on FreeBSD to accept signal numbers greater than 32, like signal.SIGRTMIN and signal.SIGRTMAX. * Add Py_NSIG constant. * Add pycore_signal.h internal header file. * _Py_Sigset_Converter() now includes the range of valid signals in the error message.
* gh-89653: PEP 670: Functions don't cast pointers (#91697)Victor Stinner2022-04-253-56/+119
| | | | | | | | | | | | | | | | | | | | | In the limited C API version 3.11 and newer, the following functions no longer cast their object pointer argument with _PyObject_CAST() or _PyObject_CAST_CONST(): * Py_REFCNT(), Py_TYPE(), Py_SIZE() * Py_SET_REFCNT(), Py_SET_TYPE(), Py_SET_SIZE() * Py_IS_TYPE() * Py_INCREF(), Py_DECREF() * Py_XINCREF(), Py_XDECREF() * Py_NewRef(), Py_XNewRef() * PyObject_TypeCheck() * PyType_Check() * PyType_CheckExact() Split Py_DECREF() implementation in 3 versions to make the code more readable. Update the xxlimited.c extension, which uses the limited C API version 3.11, to pass PyObject* to these functions.
* gh-91880: add try/except around `signal.signal` (#91881)David Hewitt2022-04-252-1/+26
| | | | Fixes gh-91880.
* gh-91904: Fix setting envvar PYTHONREGRTEST_UNICODE_GUARD (GH-91905)Serhiy Storchaka2022-04-253-5/+8
| | | | It always failed on non-UTF-8 locale and prevented running regrtests.
* gh-90633: Improve error and docs for typing.assert_never (#91720)Jelle Zijlstra2022-04-254-2/+37
| | | | | Closes #90633 Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-84461: Include _emscripten_info in pythoninfo output (GH-91907)Christian Heimes2022-04-251-0/+1
|
* gh-91888: add a `:gh:` role to the documentation (#91889)Ezio Melotti2022-04-253-1/+26
| | | | | | | | | | | * Add a new :gh:`...` role for GitHub issues. * Fix a GitHub id to use the :gh: role. * Add Misc/NEWS entry. * Refactoring and rephrasing. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Rewrite audio.py to jive with image.py (#91886)Barry Warsaw2022-04-246-64/+78
| | | | | | | Similar to the rewrite of email/mime/image.py and associated test after the deprecation of imghdr.py, thisrewrites email/mime/audio.py and associated tests after the deprecation of sndhdr.py. Closes #91885
* gh-91821: Make decimal test succeed consistently (#91825)Jelle Zijlstra2022-04-242-0/+2
| | | | | | | The test relies on precision being set to 9, but some ways of invoking this test leave it set to 28 instead. I don't know exactly how it happens, but setting the precision directly should make the behavior consistent.
* gh-91491: What's New in 3.11 section for typing PEPs (#91721)Jelle Zijlstra2022-04-241-2/+133
| | | | | Other aspects of typing aren't covered yet; I'll do that in a separate PR.
* Simplify testing the warning filename (GH-91868)Serhiy Storchaka2022-04-248-43/+43
| | | The context manager result has the "filename" attribute.
* gh-91230: Concise catch_warnings with simplefilter (#91435)Zac Hatfield-Dodds2022-04-245-2/+49
|
* gh-91217: deprecate spwd (#91846)Brett Cannon2022-04-234-1/+13
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* RE: Pre-split the list of opcode names (GH-91859)Serhiy Storchaka2022-04-231-70/+71
| | | | 1. It makes them interned. 2. It allows to add comments to individual opcodes.
* gh-84461: Add --enable-wasm-pthreads and more file systems (GH-91820)Christian Heimes2022-04-235-63/+161
|
* gh-91308: Simplify parsing inline flag "x" (verbose) (GH-91855)Serhiy Storchaka2022-04-231-16/+4
|
* RE: Add more tests for inline flag "x" and re.VERBOSE (GH-91854)Serhiy Storchaka2022-04-231-5/+27
|
* gh-84461: Add sys._emscripten_info, improve docs and build (gh-91781)Christian Heimes2022-04-238-123/+263
|
* gh-88116: Enhance the inspect frame APIs to use the extended position ↵Pablo Galindo Salgado2022-04-235-38/+193
| | | | information (GH-91531)
* gh-85864: Mark positional-only args in io docs (#91683)slateny2022-04-231-10/+10
|
* gh-91547: Remove "Undocumented modules" page (#91682)Shantanu2022-04-223-27/+1
|
* gh-91217: deprecate-sndhdr (#91806)Brett Cannon2022-04-226-16/+49
| | | | | Also inline necessary functionality from `sndhdr` into `email.mime.audio` for `MIMEAudio`. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* bpo-46720: Add support for path-like objects to ↵Géry Ogam2022-04-225-8/+34
| | | | | multiprocessing.set_executable for Windows (GH-31279) This bring the API to be on a par with Unix-like systems.
* gh-91575: Add a script for generating data for case-insensitive matching in ↵Serhiy Storchaka2022-04-225-57/+212
| | | | | re (GH-91660) Also test that all extra cases are in BMP.
* gh-91700: Validate the group number in conditional expression in RE (GH-91702)Serhiy Storchaka2022-04-223-0/+16
| | | | | | In expression (?(group)...) an appropriate re.error is now raised if the group number refers to not defined group. Previously it raised RuntimeError: invalid SRE code.
* gh-90568: Fix exception type for \N with a named sequence in RE (GH-91665)Serhiy Storchaka2022-04-223-2/+9
| | | re.error is now raised instead of TypeError.