summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-81548: Deprecate octal escape sequences with value larger than 0o377 ↵Serhiy Storchaka2022-04-308-18/+139
| | | | (GH-91668)
* gh-91583: AC: Fix regression for functions with defining_class (GH-91739)Serhiy Storchaka2022-04-3019-449/+820
| | | | | Argument Clinic now generates the same efficient code as before adding the defining_class parameter.
* gh-91760: Deprecate group names and numbers which will be invalid in future ↵Serhiy Storchaka2022-04-305-7/+112
| | | | | | | | (GH-91794) Only sequence of ASCII digits will be accepted as a numerical reference. The group name in bytes patterns and replacement strings could only contain ASCII letters and digits and underscore.
* gh-92049: Forbid pickling constants re._constants.SUCCESS etc (GH-92070)Serhiy Storchaka2022-04-302-0/+4
| | | Previously, pickling did not fail, but the result could not be unpickled.
* gh-91954: Emit EncodingWarning from locale and subprocess (GH-91977)Inada Naoki2022-04-305-14/+65
| | | locale.getpreferredencoding() and subprocess.Popen() emit EncodingWarning
* gh-91880 - fix typo (GH-92069)David Hewitt2022-04-301-1/+1
| | | | | https://github.com/python/cpython/issues/91880#issuecomment-1113914241 - With thanks to @MojoVampire for spotting this. Automerge-Triggered-By: GH:gvanrossum
* bpo-43224: Implement substitution of unpacked TypeVarTuple in C (GH-31828)Serhiy Storchaka2022-04-305-41/+152
| | | | Co-authored-by: Matthew Rahtz <mrahtz@gmail.com>
* gh-92064: Fix global variable name collision in test_typing (#92067)Dennis Sweeney2022-04-301-13/+13
| | | Fixes #92064
* Rephrase typing.assert_never docs (#92061)Shantanu2022-04-301-2/+2
| | | This change is similar to that in #32069
* gh-91491: Add several typing features to What's New (#92060)Shantanu2022-04-301-0/+65
| | | | | | | This gets all the major items in #91491. However, I didn't get around to adding what's new entries for the large clump of changes in the last bullet point in the issue. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-91217: deprecate xdrlib (GH-92066)Brett Cannon2022-04-304-1/+8
| | | Automerge-Triggered-By: GH:brettcannon
* Fix indentation for typing.Unpack docs (#92058)Jelle Zijlstra2022-04-291-21/+21
| | | https://docs.python.org/3.11/library/typing.html#typing.Unpack
* sorting howto: Add clarification on < using __lt__ (#92010)slateny2022-04-291-1/+4
|
* bpo-44791: Accept ellipsis as the last argument of typing.Concatenate (#30969)Serhiy Storchaka2022-04-294-14/+9
|
* gh-87390: Add tests demonstrating current type variable substitution ↵Matthew Rahtz2022-04-291-0/+387
| | | | behaviour (#32341)
* bpo-26792: Improve docstrings of runpy module run_functions (#30729)Humbled Drugman2022-04-292-8/+30
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-91324: Convert the stable ABI manifest to TOML (GH-92026)Petr Viktorin2022-04-295-2416/+2413
|
* bpo-36329: Remove 'make -C Doc serve' in favour of 'make -C Doc htmlview' ↵Hugo van Kemenade2022-04-296-54/+62
| | | | | | | | | | | | | | | | | | (GH-32354) Also updated `make -C htmlview` so it used a full path with `file://`, because the original didn't open the page (macOS). For example: ```sh cd Doc # Doesn't open anything: python3 -c "import webbrowser; webbrowser.open('build/html/index.html')" # Opens the docs page e.g. file:///Users/hugo/github/cpython/Doc/build/html/index.html : python3 -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('build/html/index.html'))" ``` https://bugs.python.org/issue36329
* gh-91873: Summarise deprecations in typing at the top level (GH-91864)Ken Jin2022-04-291-0/+21
|
* bpo-22276: Change pathlib.Path.glob not to ignore trailing path separator ↵Eisuke Kawashima2022-04-285-0/+42
| | | | | | | (GH-10349) Now pathlib.Path.glob() **only** matches directories when the pattern ends in a path separator. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-91603: Speed up isinstance/issubclass on union types (GH-91631)Yurii Karabas2022-04-287-79/+24
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-91832: Add 'required' attr to argparse.Action repr (GH-91841)Abhigyan Bose2022-04-283-2/+6
| | | | | | | | | # Adding 'required' to names in Lib.argparse.Action gh-91832: Added 'required' to the list `names` in `Lib.argparse.Action`. Changed constant strings that test the Action object. Automerge-Triggered-By: GH:merwok
* gh-91324: List feature macros in the stable ABI manifest, improve tests ↵Petr Viktorin2022-04-286-23/+232
| | | | (GH-32415)
* gh-84461: Add HOSTRUNNER for program to run Python executable (GH-91931)Ethan Smith2022-04-283-9/+59
| | | | | | | `HOSTRUNNER` is a program which can be used to run `BUILDPYTHON` for the host platform (for example, `python.js` requires `node`). Also change depedencies from `build_all` to `all` so that targets which can't build everything (e.g. WASM) can still run `buildbottest` and `pythoninfo`. cc @tiran
* gh-89479: Export _Py_GetSpecializationStats() internal function (#92011)Victor Stinner2022-04-282-3/+4
| | | | | | When Python is built with "./configure --enable-pystats" (if the Py_STATS macro is defined), the _Py_GetSpecializationStats() function must be exported, since it's used by the _opcode extension which is built as a shared library.
* gh-91984: Fix trailing spaces in multiline test strings in test_argparse ↵Abhigyan Bose2022-04-282-4/+3
| | | | (GH-91986)
* gh-91603: Speed up operator "|" for UnionType (GH-91955)Serhiy Storchaka2022-04-282-87/+72
| | | | | | | | | Reduce the complexity from O((M+N)^2) to O(M*N), where M and N are the length of __args__ for both operands (1 for operand which is not a UnionType). As a consequence, the complexity of parameter substitution in UnionType has been reduced from O(N^3) to O(N^2). Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* 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
|