Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-93353: regrtest checks for leaked temporary files (#93776) | Victor Stinner | 2022-06-14 | 3 | -7/+55 | |
| | | | | | When running tests with -jN, create a temporary directory per process and mark a test as "environment changed" if a test leaks a temporary file or directory. | |||||
* | GH-93429: Merge `LOAD_METHOD` back into `LOAD_ATTR` (GH-93430) | Ken Jin | 2022-06-14 | 13 | -380/+321 | |
| | ||||||
* | gh-90473: Include stdlib dir in wasmtime PYTHONPATH (GH-93797) | Christian Heimes | 2022-06-14 | 2 | -2/+2 | |
| | ||||||
* | GH-93516: Store offset of first traceable instruction in code object (GH-93769) | Mark Shannon | 2022-06-14 | 6 | -53/+54 | |
| | ||||||
* | GH-93662: Make sure that column offsets are correct in multi-line method ↵ | Mark Shannon | 2022-06-14 | 3 | -5/+48 | |
| | | | | calls. (GH-93673) | |||||
* | gh-91321: Fix compatibility with C++ older than C++11 (#93784) | Victor Stinner | 2022-06-14 | 5 | -36/+76 | |
| | | | | | Fix the compatibility of the Python C API with C++ older than C++11. _Py_NULL is only defined as nullptr on C++11 and newer. | |||||
* | gh-89546: Clean up PyType_FromMetaclass (GH-93686) | Petr Viktorin | 2022-06-14 | 3 | -91/+192 | |
| | | | | | | | | When changing PyType_FromMetaclass recently (GH-93012, GH-93466, GH-28748) I found a bunch of opportunities to improve the code. Here they are. Fixes: #89546 Automerge-Triggered-By: GH:encukou | |||||
* | gh-93761: Fix test to avoid simple delay when synchronizing. (GH-93779) | Vinay Sajip | 2022-06-14 | 1 | -3/+5 | |
| | ||||||
* | gh-91810: Fix regression with writing an XML declaration with ↵ | Serhiy Storchaka | 2022-06-14 | 3 | -20/+10 | |
| | | | | | | | | | | encoding='unicode' (GH-93426) Suppress writing an XML declaration in open files in ElementTree.write() with encoding='unicode' and xml_declaration=None. If file patch is passed to ElementTree.write() with encoding='unicode', always open a new file in UTF-8. | |||||
* | gh-79512: Fixed names and __module__ value of weakref classes (GH-93719) | Serhiy Storchaka | 2022-06-14 | 3 | -3/+17 | |
| | | | | | Classes ReferenceType, ProxyType and CallableProxyType have now correct atrtributes __module__, __name__ and __qualname__. It makes them (types, not instances) pickleable. | |||||
* | gh-93741: Add private C API _PyImport_GetModuleAttrString() (GH-93742) | Serhiy Storchaka | 2022-06-14 | 24 | -248/+114 | |
| | | | | | | It combines PyImport_ImportModule() and PyObject_GetAttrString() and saves 4-6 lines of code on every use. Add also _PyImport_GetModuleAttr() which takes Python strings as arguments. | |||||
* | gh-93353: Add test.support.late_deletion() (#93774) | Victor Stinner | 2022-06-13 | 2 | -10/+41 | |
| | ||||||
* | gh-89653: PEP 670: Macros always cast arguments in cpython/ (#93766) | Victor Stinner | 2022-06-13 | 9 | -92/+28 | |
| | | | | Header files in the Include/cpython/ are only included if the Py_LIMITED_API macro is not defined. | |||||
* | gh-84461: Fix parallel testing on WebAssembly (GH-93768) | Christian Heimes | 2022-06-13 | 2 | -5/+10 | |
| | ||||||
* | gh-93353: Fix importlib.resources._tempfile() finalizer (#93377) | Victor Stinner | 2022-06-13 | 2 | -2/+8 | |
| | | | | | Fix the importlib.resources.as_file() context manager to remove the temporary file if destroyed late during Python finalization: keep a local reference to the os.remove() function. Patch by Victor Stinner. | |||||
* | gh-84623: Remove unused imports in tests (#93772) | Victor Stinner | 2022-06-13 | 52 | -65/+8 | |
| | ||||||
* | gh-91731: Don't define 'static_assert' in C++11 where is a keyword to avoid ↵ | Pablo Galindo Salgado | 2022-06-13 | 2 | -0/+5 | |
| | | | | UB (GH-93700) | |||||
* | gh-84623: Remove unused imports in stdlib (#93773) | Victor Stinner | 2022-06-13 | 12 | -12/+3 | |
| | ||||||
* | Remove ANY_VARARGS() macro from the C API (#93764) | Victor Stinner | 2022-06-13 | 2 | -3/+3 | |
| | | | The macro was exposed by mistake. | |||||
* | gh-89653: PEP 670: Convert PyFunction macros (#93765) | Victor Stinner | 2022-06-13 | 1 | -16/+39 | |
| | | | Convert PyFunction macros to static inline functions. | |||||
* | Add more FOR_ITER specialization stats (GH-32151) | Dennis Sweeney | 2022-06-13 | 1 | -2/+26 | |
| | ||||||
* | GH-90699: use statically allocated strings in typeobject.c (gh-93751) | Kumar Aditya | 2022-06-12 | 3 | -2/+6 | |
| | ||||||
* | gh-93747: Fix Refleak when handling multiple Py_tp_doc slots (gh-93749) | Dong-hee Na | 2022-06-12 | 1 | -1/+1 | |
| | ||||||
* | gh-93728: fix memory leak in deepfrozen code objects (GH-93729) | Kumar Aditya | 2022-06-12 | 1 | -0/+1 | |
| | ||||||
* | gh-91162: Support splitting of unpacked arbitrary-length tuple over TypeVar ↵ | Serhiy Storchaka | 2022-06-12 | 6 | -127/+106 | |
| | | | | | | | | | and TypeVarTuple parameters (alt) (GH-93412) For example: A[T, *Ts][*tuple[int, ...]] -> A[int, *tuple[int, ...]] A[*Ts, T][*tuple[int, ...]] -> A[*tuple[int, ...], int] | |||||
* | Remove usage of _Py_IDENTIFIER from math module (#93739) | Dong-hee Na | 2022-06-12 | 1 | -9/+55 | |
| | ||||||
* | gh-84508: tool to generate cjk traditional chinese mappings (gh-93272) | Davide Rizzo | 2022-06-11 | 3 | -0/+242 | |
| | ||||||
* | Change list to view object (#93661) | Pamela Fox | 2022-06-11 | 2 | -2/+3 | |
| | ||||||
* | gh-86404: [doc] A make sucpicious false positive. (GH-93710) | Julien Palard | 2022-06-11 | 1 | -0/+2 | |
| | ||||||
* | gh-90153: whatsnew: "z" option in format spec (GH-93624) | John Belmonte | 2022-06-11 | 1 | -0/+3 | |
| | | | Add what's new entry for PEP 682 in Python 3.11. | |||||
* | gh-90473: Skip test_queue when threading is not available (GH-93712) | Christian Heimes | 2022-06-11 | 1 | -3/+2 | |
| | ||||||
* | gh-84461: Use HOSTRUNNER to run regression tests (GH-93694) | Christian Heimes | 2022-06-11 | 4 | -6/+55 | |
| | | | Co-authored-by: Brett Cannon <brett@python.org> | |||||
* | gh-92930: _pickle.c: Acquire strong references before calling save() (GH-92931) | Dennis Sweeney | 2022-06-11 | 3 | -11/+98 | |
| | ||||||
* | gh-92886: Fix tests that fail when running with optimizations (`-O`) in ↵ | jackh-ncl | 2022-06-10 | 2 | -1/+5 | |
| | | | | `test_zipimport.py` (GH-93236) | |||||
* | gh-91317: Document that Path does not collapse initial `//` (GH-32193) | Oleg Iarygin | 2022-06-10 | 2 | -3/+32 | |
| | | | | | | | | | | | | | | Documentation for `pathlib` says: > Spurious slashes and single dots are collapsed, but double dots ('..') are not, since this would change the meaning of a path in the face of symbolic links: However, it omits that initial double slashes also aren't collapsed. Later, in documentation of `PurePath.drive`, `PurePath.root`, and `PurePath.name` it mentions UNC but: - this abbreviation says nothing to a person who is unaware about existence of UNC (Wikipedia doesn't help either by [giving a disambiguation page](https://en.wikipedia.org/wiki/UNC)) - it shows up only if a person needs to use a specific property or decides to fully learn what the module provides. For context, see the BPO entry. | |||||
* | gh-93461: Invalidate sys.path_importer_cache entries with relative paths ↵ | Christian Heimes | 2022-06-10 | 5 | -14/+36 | |
| | | | | (GH-93653) | |||||
* | GH-93621: reorder code in with/async-with exception exit path to reduce the ↵ | Irit Katriel | 2022-06-10 | 3 | -15/+173 | |
| | | | | size of the exception table (GH-93622) | |||||
* | gh-81790: support "UNC" device paths in `ntpath.splitdrive()` (GH-91882) | Barney Gale | 2022-06-10 | 5 | -66/+39 | |
| | ||||||
* | gh-93671: Avoid exponential backtracking in deeply nested sequence patterns ↵ | Pablo Galindo Salgado | 2022-06-10 | 4 | -3/+36 | |
| | | | | | in match statements (GH-93680) Co-authored-by: Łukasz Langa <lukasz@langa.pl> | |||||
* | gh-93466: Document PyType_Spec doesn't accept repeated slot IDs; raise where ↵ | Petr Viktorin | 2022-06-10 | 5 | -2/+84 | |
| | | | | this was problematic (GH-93471) | |||||
* | gh-93491: Add support tier detection to configure (GH-93492) | Christian Heimes | 2022-06-10 | 5 | -1/+196 | |
| | | | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Steve Dower <steve.dower@microsoft.com> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com> | |||||
* | gh-90763: Modernise xx template module initialisation (#93078) | Erlend Egeberg Aasland | 2022-06-10 | 2 | -43/+54 | |
| | | | | Use C APIs such as PyModule_AddType instead of PyModule_AddObject. Also remove incorrect module decrefs if module fails to initialise. | |||||
* | gh-92434: Silence compiler warning in Modules/_sqlite/connection.c on 32-bit ↵ | neonene | 2022-06-10 | 1 | -1/+1 | |
| | | | | systems (#93090) | |||||
* | gh-90549: Fix leak of global named resources using multiprocessing spawn ↵ | Leo Trol | 2022-06-09 | 4 | -2/+54 | |
| | | | | | | (#30617) Co-authored-by: XD Trol <milestonejxd@gmail.com> Co-authored-by: Antoine Pitrou <pitrou@free.fr> | |||||
* | gh-90473: Skip get_config_h() tests on WASI (GH-93645) | Christian Heimes | 2022-06-09 | 2 | -2/+7 | |
| | ||||||
* | gh-90473: disable user site packages on WASI/Emscripten (GH-93633) | Christian Heimes | 2022-06-09 | 3 | -4/+6 | |
| | ||||||
* | Improve logging documentation with example and additional cookbook re… ↵ | Vinay Sajip | 2022-06-09 | 2 | -2/+99 | |
| | | | | (GH-93644) | |||||
* | bpo-45383: Get metaclass from bases in PyType_From* (GH-28748) | Sebastian Berg | 2022-06-09 | 4 | -97/+323 | |
| | | | | | | | | | This checks the bases of of a type created using the FromSpec API to inherit the bases metaclasses. The metaclass's alloc function will be called as is done in `tp_new` for classes created in Python. Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com> | |||||
* | Doc: Update references and examples of old, unsupported OSes and uarches ↵ | CAM Gerlach | 2022-06-09 | 7 | -18/+29 | |
| | | | | (GH-92791) | |||||
* | gh-90494: Reject 6th element of the __reduce__() tuple (GH-93609) | Serhiy Storchaka | 2022-06-09 | 4 | -2/+27 | |
| | | | | | copy.copy() and copy.deepcopy() now always raise a TypeError if __reduce__() returns a tuple with length 6 instead of silently ignore the 6th item or produce incorrect result. |