summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-43892: Validate the first term of complex literal value patterns (GH-25735)Brandt Bucher2021-04-308-441/+595
|
* bpo-42800: Rename AUDIT_READ to PY_AUDIT_READ (GH-25736)Steve Dower2021-04-306-14/+14
|
* bpo-42800: add audit hooks for f_code and tb_frame (GH-24182)Ryan Hileman2021-04-2911-15/+32
| | | | | | | | | | Accessing the following attributes will now fire PEP 578 style audit hooks as ("object.__getattr__", obj, name): * PyTracebackObject: tb_frame * PyFrameObject: f_code * PyGenObject: gi_code, gi_frame * PyCoroObject: cr_code, cr_frame * PyAsyncGenObject: ag_code, ag_frame Add an AUDIT_READ attribute flag aliased to READ_RESTRICTED. Update obsolete flag documentation.
* bpo-43933: Show frame.f_lineno as None, rather than -1, if there is no line ↵Mark Shannon2021-04-293-2/+20
| | | | number. (GH-25717)
* bpo-42589: Change URL for 'from' link when used in a raised exception (GH-23872)sblondon2021-04-292-3/+3
| | | | | Links for 'raise Exception from x' target to 'The raise statement' (7.8) section instead of 'The import statement' (7.11) section. There are more modified links than in the bug report because I searched some other ones which can get the same improvement.
* bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and ↵Senthil Kumaran2021-04-294-0/+54
| | | | | | | | tabs. (GH-25595) * issue43882 - urllib.parse should sanitize urls containing ASCII newline and tabs. Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-28254: Add PyGC_ functions to the stable ABI manifest (GH-25720)Petr Viktorin2021-04-292-1/+13
| | | | Co-authored-by: Senthil Kumaran <senthil@uthcode.com> Co-authored-by: scoder <stefan_ml@behnel.de>
* bpo-42739: Don't use sentinels to mark end of line table. (GH-25657)Mark Shannon2021-04-2913-4984/+4966
| | | | | * Add length parameter to PyLineTable_InitAddressRange and doen't use sentinel values at end of table. Makes the line number table more robust. * Update PyCodeAddressRange to match PEP 626.
* bpo-43651: Fix test_logging (GH-25715)Inada Naoki2021-04-291-2/+1
|
* bpo-43774: Enhance debug build documentation (GH-25712)Victor Stinner2021-04-294-69/+53
| | | | | * Add also references to --with-trace-refs option. * Move _ob_next and _ob_prev at the end, since they don't exist by default and are related to debug.
* bpo-37892: Use space indents in IDLE Shell (GH-25678)Terry Jan Reedy2021-04-293-3/+11
| | | | | | Adding a newline to the prompt moves it out of the way of user code input, which now starts at the left margin, along with continuation lines.
* bpo-43795: Generate python3dll.c and doc data from manifest (PEP 652) (GH-25315)Petr Viktorin2021-04-297-139/+2844
|
* bpo-43774: Remove unused PYMALLOC_DEBUG macro (GH-25711)Victor Stinner2021-04-298-143/+135
| | | Enhance also the documentation of debug hooks on memory allocators.
* bpo-28254: Cleanup test_subprocess.test_preexec_gc_module_failure() (GH-25709)Victor Stinner2021-04-291-4/+0
| | | Saving/restoring gc.disable and gc.isenabled is no longer needed.
* bpo-43908: Document Static Types in the C API (GH-25710)Victor Stinner2021-04-297-50/+75
| | | Update also PyTypeObject structure definition in the doc.
* bpo-43908: Make array.array type immutable (GH-25696)Erlend Egeberg Aasland2021-04-293-1/+10
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-43908: Make re types immutable (GH-25697)Erlend Egeberg Aasland2021-04-293-3/+17
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-43892: Make match patterns explicit in the AST (GH-25585)Nick Coghlan2021-04-2920-1348/+3431
| | | Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* bpo-41139: Deprecate `cgi.log()` (GH-25625)Inada Naoki2021-04-294-1/+10
|
* bpo-43651: Fix EncodingWarning in `os.fdopen()` and test_os (GH-25654)Inada Naoki2021-04-292-13/+16
|
* bpo-43651: Fix EncodingWarning in tests. (GH-25655)Inada Naoki2021-04-293-17/+21
| | | | | * test_httplib * test_httpservers * test_logging
* bpo-24275: Don't downgrade unicode-only dicts to mixed on lookups (GH-25186)Hristo Venev2021-04-292-3/+106
|
* [doc] Be more clear on super() regarding multiple base classes methods ↵Andre Delfino2021-04-291-1/+1
| | | | (GH-21789)
* [doc] Do some polishing in IDEs section (GH-22070)Andre Delfino2021-04-291-12/+12
|
* Document importlib.metadata.PackagePath.locate method (GH-25669)Paul Moore2021-04-281-1/+7
|
* bpo-43970: Optimize Path.cwd() in pathlib by not instantiating a class ↵kfollstad2021-04-281-1/+1
| | | | unnecessarily (GH-25699)
* bpo-37903: IDLE: Shell sidebar with prompts (GH-22682)Tal Einat2021-04-2814-131/+887
| | | | | | The first followup will change shell indents to spaces. More are expected. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-28254: _posixsubprocess uses PyGC_Enable/PyGC_Disable (GH-25693)Victor Stinner2021-04-282-123/+5
|
* bpo-43908: Add Py_TPFLAGS_IMMUTABLETYPE flag (GH-25520)Erlend Egeberg Aasland2021-04-284-1/+24
| | | | | | Introduce Py_TPFLAGS_IMMUTABLETYPE flag for immutable type objects, and modify PyType_Ready() to set it for static types. Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-28254: Add a C-API for controlling the GC state (GH-25687)scoder2021-04-287-7/+152
| | | | | | | | Add new C-API functions to control the state of the garbage collector: PyGC_Enable(), PyGC_Disable(), PyGC_IsEnabled(), corresponding to the functions in the gc module. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-43757: Make pathlib use os.path.realpath() to resolve symlinks in a path ↵Barney Gale2021-04-287-109/+184
| | | | | (GH-25264) Also adds a new "strict" argument to realpath() to avoid changing the default behaviour of pathlib while sharing the implementation.
* bpo-41559: Change PEP 612 implementation to pure Python (#25449)Ken Jin2021-04-284-71/+92
|
* bpo-43955: Handle the case where the distutils warning has already been ↵Steve Dower2021-04-281-1/+1
| | | | triggered (GH-25675)
* bpo-43959: clarify the documentation of the PyContextVar C-API (GH-25671)scoder2021-04-282-7/+7
| | | Automerge-Triggered-By: GH:scoder
* bpo-43961: Fix test_logging.test_namer_rotator_inheritance() (GH-25684)Victor Stinner2021-04-282-1/+3
| | | | Fix test_logging.test_namer_rotator_inheritance() on Windows: use os.replace() rather than os.rename().
* bpo-43962: Fix _PyInterpreterState_IDIncref() (GH-25683)Victor Stinner2021-04-284-10/+22
| | | | _PyInterpreterState_IDIncref() now calls _PyInterpreterState_IDInitref() and always increments id_refcount.
* bpo-43960: test_pdb resets breakpoints (GH-25673)Irit Katriel2021-04-281-0/+1
| | | | Reset global breakpoint state at the beginning of test_pdb_next_command_in_generator_for_loop() to make it deterministic.
* bpo-43776: Remove list call from args in Popen repr (GH-25338)M. Kocher2021-04-283-23/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the `list` call in the Popen `repr`. Current implementation: For cmd = `python --version`, with `shell=True`. ```bash <Popen: returncode: None args: ['p', 'y', 't', 'h', 'o', 'n', ' ', '-', '-',...> ``` For `shell=False` and args=`['python', '--version']`, the output is correct: ```bash <Popen: returncode: None args: ['python', '--version']> ``` With the new changes the `repr` yields: For cmd = `python --version`, with `shell=True`: ```bash <Popen: returncode: None args: 'python --version'> ``` For `shell=False` and args=`['python', '--version']`, the output: ```bash <Popen: returncode: None args: ['python', '--version']> ``` Automerge-Triggered-By: GH:gpshead
* bpo-41486: Faster bz2/lzma/zlib via new output buffering (GH-21740)Ma Lin2021-04-287-254/+670
| | | | | | | | | Faster bz2/lzma/zlib via new output buffering. Also adds .readall() function to _compression.DecompressReader class to take best advantage of this in the consume-all-output at once scenario. Often a 5-20% speedup in common scenarios due to less data copying. Contributed by Ma Lin.
* bpo-43963: Add _signal module state (GH-25676)Victor Stinner2021-04-281-84/+153
| | | | | | | | | | | | | * Add signal_state_t structure and signal_global_state variable. * Add a module state to the _signal module. * Move and rename variables: * DefaultHandler becomes state->default_handler * IgnoreHandler becomes state->ignore_handler * sigint_event becomes state->sigint_event * ItimerError becomes modstate->itimer_error * Rename SetHandler() to set_handler() to be consistent with get_handler().
* bpo-37751: Update `codecs.register()` doc. (GH-25643)Inada Naoki2021-04-281-3/+7
|
* bpo-43963: Fix import _signal in subinterpreters (GH-25674)Victor Stinner2021-04-272-27/+43
| | | | | | | Importing the _signal module in a subinterpreter has no longer side effects. signal_module_exec() no longer modifies Handlers and no longer attempts to set SIGINT signal handler in subinterpreters.
* bpo-43957: [Enum] Deprecate ``TypeError`` from containment checks. (GH-25670)Ethan Furman2021-04-275-36/+148
| | | | | In 3.12 ``True`` or ``False`` will be returned for all containment checks, with ``True`` being returned if the value is either a member of that enum or one of its members' value.
* bpo-8978: improve tarfile.open error message when lzma / bz2 are missing ↵Anthony Sottile2021-04-274-2/+19
| | | | | (GH-24850) Automerge-Triggered-By: GH:pablogsal
* Fix generated file name for installer builds on macOS 11+. (GH-25661)Ned Deily2021-04-271-6/+28
|
* bpo-43492: Update macOS installer to use SQLite 3.35.5 (GH-25640)Erlend Egeberg Aasland2021-04-272-3/+4
|
* bpo-43492: Upgrade Windows installer to use SQLite 3.35.5 (GH-25641)Erlend Egeberg Aasland2021-04-274-3/+4
|
* bpo-43864: Silence deprecation warning in test_importlib.test_module_found ↵Shreyan Avigyan2021-04-271-2/+6
| | | | and test_importlib.test_module_not_found (GH-25656)
* bpo-43766: Fix TypeGuard docs (#25660)Ken Jin2021-04-272-8/+7
|
* bpo-43766: Implement PEP 647 (User-Defined Type Guards) in typing.py (#25282)Ken Jin2021-04-275-0/+175
|