summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* bpo-44594: fix (Async)ExitStack handling of __context__ (gh-27089)John Belmonte2021-10-044-4/+76
| | | | | | | | | * bpo-44594: fix (Async)ExitStack handling of __context__ Make enter_context(foo()) / enter_async_context(foo()) equivalent to `[async] with foo()` regarding __context__ when an exception is raised. Previously exceptions would be caught and re-raised with the wrong context when explicitly overriding __context__ with None.
* bpo-45350: Rerun autoreconf with the pkg-config macros (GH-28708)Pablo Galindo Salgado2021-10-033-5/+484
|
* bpo-45355: Use sizeof(_Py_CODEUNIT) instead of literal 2 for the size of the ↵Serhiy Storchaka2021-10-035-15/+15
| | | | code unit (GH-28711)
* Remove news entry without bpo issue number. (GH-28703)Julien Palard2021-10-031-1/+0
| | | | | I'm just removing an erroneous NEWS entry I previously merged. Automerge-Triggered-By: GH:JulienPalard
* Remove trailing spaces. (GH-28706)Serhiy Storchaka2021-10-035-6/+6
|
* Fix spelling error in comment (GH-28696)Raymond Hettinger2021-10-021-1/+1
|
* bpo-45346: Keep docs consistent regarding true and false values (GH-28697)Raymond Hettinger2021-10-023-6/+6
|
* bpo-45329: Fix freed memory access in pyexpat.c (GH-28649)TAGAMI Yukihiro2021-10-022-1/+3
|
* Makefile: Fix missing slashes (GH-28659)native-api2021-10-022-2/+3
|
* bpo-45341: Replace 'Packaging' with 'Package' in "Python P... Index" (#28687)Terry Jan Reedy2021-10-022-7/+7
| | | pypi.org " The Python Package Index (PyPI) ...
* bpo-44687: Ensure BufferedReader objects with unread buffers can peek even ↵AngstyDuck2021-10-012-3/+6
| | | | when the underlying file is closed (GH-28457)
* Fix a couple of compiler warnings. (GH-28677)Mark Shannon2021-10-011-2/+2
|
* bpo-45332: Fix broken Decimal test and benchmark (GH-28680)Dong-hee Na2021-10-013-6/+3
|
* hashlib: Fix old message about unicode objects. (GH-28653)Julien Palard2021-10-011-1/+1
|
* sqlite3: Modernize documentation around unicode and bytes. (GH-28652)Julien Palard2021-10-012-4/+4
|
* bpo-41710: Add private _PyDeadline_Get() function (GH-28674)Victor Stinner2021-10-0111-108/+176
| | | | | | | | Add a private C API for deadlines: add _PyDeadline_Init() and _PyDeadline_Get() functions. * Add _PyTime_Add() and _PyTime_Mul() functions which compute t1+t2 and t1*t2 and clamp the result on overflow. * _PyTime_MulDiv() now uses _PyTime_Add() and _PyTime_Mul().
* bpo-41710: gc_collect_main() uses _PyTime_GetPerfCounter() (GH-28676)Victor Stinner2021-10-011-2/+2
| | | | | | | | | If the DEBUG_STATS debug flag is set, gc_collect_main() now uses _PyTime_GetPerfCounter() instead of _PyTime_GetMonotonicClock() to measure the elapsed time. On Windows, _PyTime_GetMonotonicClock() only has a resolution of 15.6 ms, whereas _PyTime_GetPerfCounter() is closer to a resolution of 100 ns.
* bpo-41710: Fix PY_TIMEOUT_MAX on Windows (GH-28673)Victor Stinner2021-10-013-13/+10
| | | | | | | | | | WaitForSingleObject() accepts timeout in milliseconds in the range [0; 0xFFFFFFFE] (DWORD type). INFINITE value (0xFFFFFFFF) means no timeout. 0xFFFFFFFE milliseconds is around 49.7 days. PY_TIMEOUT_MAX is (0xFFFFFFFE * 1000) milliseconds on Windows, around 49.7 days. Partially revert commit 37b8294d6295ca12553fd7c98778be71d24f4b24.