summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Replace usage of List[...] with list[...] in typing docs (GH-28821)Micael Jarniac2021-10-091-8/+8
| | | The ``List[...]`` form is deprecated since 3.9.
* bpo-45410: libregrtest -jN writes stderr into stdout (GH-28819)Victor Stinner2021-10-082-22/+22
| | | | | | When libregrtest spawns a worker process, stderr is now written into stdout to keep messages order. Use a single pipe for stdout and stderr, rather than two pipes. Previously, messages were out of order which made analysis of buildbot logs harder
* bpo-45407: Remove outdated XXX comment from Struct___init___impl (GH-28805)Jeong YunWon2021-10-081-1/+0
|
* bpo-45262, asyncio: Fix cache of the running loop holder (GH-28796)Matthias Reichl2021-10-072-0/+4
| | | Prevent use-after-free of running loop holder via cache.
* bpo-45408: Don't override previous tokenizer errors in the second parser ↵Pablo Galindo Salgado2021-10-074-2/+15
| | | | pass (GH-28812)
* bpo-45337: Use the realpath of the new executable when creating a venv on ↵Steve Dower2021-10-073-9/+29
| | | | Windows (GH-28663)
* bpo-16379: Fix SQLite version checks in test_module_constants() (GH-28809)Erlend Egeberg Aasland2021-10-071-2/+2
| | | Automerge-Triggered-By: GH:pablogsal
* bpo-45403: Fix test_sys.test_stdlib_dir() (GH-28785)Victor Stinner2021-10-072-2/+4
| | | | Fix test_sys.test_stdlib_dir() when Python is built outside the source tree: compare normalized paths.
* bpo-45402: Fix test_tools.test_sundry() (GH-28786)Victor Stinner2021-10-072-3/+7
| | | | Fix test_tools.test_sundry() when Python is built out of tree: fix how the freeze_modules.py tool locates the _freeze_module program.
* Remove draft notice on the 3.10 What's new document (GH-28806)Pablo Galindo Salgado2021-10-071-7/+0
| | | Automerge-Triggered-By: GH:pablogsal
* bpo-45400: Fix suggestion test of test_exceptions (GH-28783)Victor Stinner2021-10-072-1/+4
| | | | | Fix test_name_error_suggestions_do_not_trigger_for_too_many_locals() of test_exceptions if a directory name contains "a1" (like "Python-3.11.0a1"): use a stricter regular expression.
* bpo-45041: Restore `sqlite3` executescript behaviour for `SELECT` queries ↵Erlend Egeberg Aasland2021-10-072-1/+12
| | | | | | | (GH-28509) * bpo-45041: Restore sqlite3 executescript behaviour for select queries * Add regression test
* Fix typos in the Modules directory (GH-28761)Christian Clauss2021-10-0719-21/+21
|
* bpo-35970: Add help flag to base64 module (GH-28774)Ammar Askar2021-10-073-5/+20
| | | This continues off rkuska's work from https://github.com/python/cpython/pull/11789 seeing as the patch wasn't updated to add tests.
* bpo-45385: Fix reference leak from descr_check (#28719)Dong-hee Na2021-10-072-39/+38
|
* Fix typos in the Objects directory (GH-28766)Christian Clauss2021-10-0611-14/+14
|
* bpo-29505: Add fuzzer for ast.literal_eval (GH-28777)Ammar Askar2021-10-062-0/+57
| | | This supercedes https://github.com/python/cpython/pull/3437 and fuzzes the method we recommend for unsafe inputs, `ast.literal_eval`. This should exercise the tokenizer and parser.
* Fix typos in the Lib directory (GH-28775)Christian Clauss2021-10-0664-83/+83
| | | | | Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Fix typos in the Python directory (GH-28767)Christian Clauss2021-10-067-11/+11
|
* bpo-45375: Fix off by one error in buffer allocation (GH-28764)Steve Dower2021-10-061-1/+1
|
* Fix typos in the Include directory (GH-28745)Christian Clauss2021-10-067-8/+8
|
* [doc] Mention __slots__ behavior in weakref.rst (GH-21061)Jakub Stasiak2021-10-061-0/+4
| | | | | | | | | It took me longer than I expected to figure out why a random class I dealt with didn't support weak references. I believe this addition will make the __slots__/weakref interaction more discoverable to people having troubles with this. (Before this patch __slots__ was not mentioned in weakref documentation even once). Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* Fix typos in the Tools directory (GH-28769)Christian Clauss2021-10-0615-24/+24
| | | | | | | Like #28744 but for the Tools directory. [skip issue] Opening a related issue is pending python/psf-infra-meta#130 Automerge-Triggered-By: GH:pablogsal
* bpo-45328: Avoid failure in OSs without TCP_NODELAY support (GH-28646)rtobar2021-10-062-1/+8
| | | | | Operating systems without support for TCP_NODELAY will raise an OSError when trying to set the socket option, but the show can still go on.
* [Misc] [Mac] Fix typos found using codespell (GH-28756)Christian Clauss2021-10-0617-39/+39
|
* bpo-40321: Add missing test, slightly expand documentation (GH-28760)Łukasz Langa2021-10-064-8/+12
|
* Remove test_nntplib from quicktest (GH-28754)Inada Naoki2021-10-061-1/+1
|
* bpo-34804: [doc] Rephrase section on side effects in functional.rst for ↵DonnaDia2021-10-061-5/+4
| | | | | clarity (GH-27989) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-40116: Add insertion order bit-vector to dict values to allow dicts to ↵Mark Shannon2021-10-068-187/+176
| | | | share keys more freely. (GH-28520)
* Normalize jumps in compiler. All forward jumps to use JUMP_FORWARD. (GH-28755)Mark Shannon2021-10-063-14/+37
|
* bpo-40321: Support HTTP response status code 308 in urllib.request (#19588)Jochem Schulenklopper2021-10-063-4/+19
| | | | | | | | | | | * Support HTTP response status code 308 in urllib. HTTP response status code 308 is defined in https://tools.ietf.org/html/rfc7538 to be the permanent redirect variant of 307 (temporary redirect). * Update documentation to include http_error_308() * Add blurb for bpo-40321 fix Co-authored-by: Roland Crosby <roland@rolandcrosby.com>
* [doc] Fix typos found using codespell (GH-28744)Christian Clauss2021-10-0516-22/+22
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45343: Update bundled pip to 21.2.4 and setuptools to 58.1.0 (GH-28684)Illia Volochii2021-10-055-4/+5
|
* [Tools/peg_generator/pegen/parser.py] Fix typo: s/wether/whether/ (GH-28739)Ikko Ashimine2021-10-051-1/+1
|
* bpo-45020: Identify which frozen modules are actually aliases. (gh-28655)Eric Snow2021-10-0510-37/+225
| | | | | | | In the list of generated frozen modules at the top of Tools/scripts/freeze_modules.py, you will find that some of the modules have a different name than the module (or .py file) that is actually frozen. Let's call each case an "alias". Aliases do not come into play until we get to the (generated) list of modules in Python/frozen.c. (The tool for freezing modules, Programs/_freeze_module, is only concerned with the source file, not the module it will be used for.) Knowledge of which frozen modules are aliases (and the identity of the original module) normally isn't important. However, this information is valuable when we go to set __file__ on frozen stdlib modules. This change updates Tools/scripts/freeze_modules.py to map aliases to the original module name (or None if not a stdlib module) in Python/frozen.c. We also add a helper function in Python/import.c to look up a frozen module's alias and add the result of that function to the frozen info returned from find_frozen(). https://bugs.python.org/issue45020
* Post 3.11.0a1Pablo Galindo2021-10-051-1/+1
|
* Merge tag 'v3.11.0a1'Pablo Galindo2021-10-05483-1497/+5665
|\ | | | | | | Python 3.11.0a1
| * Python 3.11.0a1v3.11.0a1Pablo Galindo2021-10-05483-1497/+5665
| |
* | [doc] Fix gethostbyname_ex description (GH-28700)Andre Delfino2021-10-051-2/+2
| | | | | | It seems part of `gethostbyname_ex` doc was copied from `gethostbyaddr`. The latter has an `ip_address` parameter whereas the former doesn't.
* | Rearrage the finder tests. (gh-28740)Eric Snow2021-10-051-30/+56
| | | | | | | | | | This makes the tests a bit cleaner and makes adding more tests a little simpler. https://bugs.python.org/issue45324
* | bpo-45324: Capture data in FrozenImporter.find_spec() to use in ↵Eric Snow2021-10-056-121/+332
| | | | | | | | | | | | | | | | | | | | | | exec_module(). (gh-28633) Before this change we end up duplicating effort and throwing away data in FrozenImporter.find_spec(). Now we do the work once in find_spec() and the only thing we do in FrozenImporter.exec_module() is turn the raw frozen data into a code object and then exec it. We've added _imp.find_frozen(), add an arg to _imp.get_frozen_object(), and updated FrozenImporter. We've also moved some code around to reduce duplication, get a little more consistency in outcomes, and be more efficient. Note that this change is mostly necessary if we want to set __file__ on frozen stdlib modules. (See https://bugs.python.org/issue21736.) https://bugs.python.org/issue45324
* | bpo-44050: Extension modules can share state when they don't support ↵Hai Shi2021-10-054-1/+59
|/ | | | | sub-interpreters. (GH-27794) Automerge-Triggered-By: GH:encukou
* bpo-45375: Fix assertion failure due to searching for stdlib in unnormalised ↵Steve Dower2021-10-053-2/+28
| | | | paths (GH-28735)
* bpo-45354: Skip obsolete device name tests on Windows 11 (GH-28712)Jeremy Kloth2021-10-051-4/+7
|
* bpo-45163: Restrict added libnetwork check to builds on Haiku. (GH-28729)Ned Deily2021-10-052-4/+10
| | | | | | For example, without the guard the check could cause macOS installer builds to fail to install on older supported macOS releases where libnetwork is not available and is not needed on any release.
* bpo-43760: Check for tracing using 'bitwise or' instead of branch in ↵Mark Shannon2021-10-057-217/+249
| | | | dispatch. (GH-28723)
* bpo-45371: Fix distutils' rpath support for clang (GH-28732)Christian Heimes2021-10-052-1/+5
| | | Signed-off-by: Christian Heimes <christian@python.org>
* Fix compiler warning in ceval.c regarding signed comparison (GH-28716)Pablo Galindo Salgado2021-10-041-1/+1
|
* bpo-45355: More use of sizeof(_Py_CODEUNIT) (GH-28720)Serhiy Storchaka2021-10-043-13/+9
|
* bpo-28206: Document signals Handlers, Sigmasks and Signals enums (GH-28628)Bibo-Joshi2021-10-041-5/+30
| | | Co-authored-by: desbma <desbma@users.noreply.github.com>