summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-90110: Get the C Analyzer Tool Working Again (gh-96057)Eric Snow2022-08-173-579/+383
| | | | | | | | We broke it with a recent `_PyArg_Parser` change. Also: * moved the `_PyArg_Parser` whitelist entries over to ignored.tsv now that they are thread-safe * added some known globals from a currently-excluded file * dropped some outdated globals from the whitelist
* Correct news entry. (GH-96043)Mark Shannon2022-08-171-1/+1
|
* GH-95589: Dont crash when subclassing extension classes with multiple ↵Mark Shannon2022-08-174-43/+67
| | | | | | | inheritance (GH-96028) * Treat tp_weakref and tp_dictoffset like other opaque slots for multiple inheritance. * Document Py_TPFLAGS_MANAGED_DICT and Py_TPFLAGS_MANAGED_WEAKREF in what's new.
* gh-95991: Add some infrastructure for testing Limited API in _testcapi ↵Petr Viktorin2022-08-177-23/+64
| | | | | | | | | | | | | (GH-95992) - Limited API needs to be enabled per source file - Some builds don't support Limited API, so Limited API tests must be skipped on those builds (currently this is `Py_TRACE_REFS`, but that may change.) - `Py_LIMITED_API` must be defined before `<Python.h>` is included. This puts the hoop-jumping in `testcapi/parts.h`, so individual test files can be relatively simple. (Currently that's only `vectorcall_limited.c`, imagine more.)
* GH-93911: Specialize `LOAD_ATTR` for custom `__getattribute__` (GH-93988)Ken Jin2022-08-1711-86/+219
|
* gh-95736: Fix event loop creation in IsolatedAsyncioTestCase (GH-96033)Serhiy Storchaka2022-08-171-4/+4
| | | | | | It should be created before calling the setUp() method, but after checking for skipping a test. Automerge-Triggered-By: GH:tiran
* gh-96005: FreeBSD has ENOTCAPABLE, too (GH-96034)Christian Heimes2022-08-172-3/+5
|
* GH-95704: Don't suppress errors from tasks when TG is cancelled (#95761)Guido van Rossum2022-08-173-28/+35
| | | | | | | | | | | | | When a task catches CancelledError and raises some other error, the other error should not silently be suppressed. Any scenario where a task crashes in cleanup upon cancellation will now result in an ExceptionGroup wrapping the crash(es) instead of propagating CancelledError and ignoring the side errors. NOTE: This represents a change in behavior (hence the need to change several tests). But it is only an edge case. Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* GH-95909: Make `_PyArg_Parser` initialization thread safe (GH-95958)Kumar Aditya2022-08-163-12/+48
|
* gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006)Christian Heimes2022-08-166-4/+31
| | | | | | - On WASI `ENOTCAPABLE` is now mapped to `PermissionError`. - The `errno` modules exposes the new error number. - `getpath.py` now ignores `PermissionError` when it cannot open landmark files `pybuilddir.txt` and `pyenv.cfg`.
* gh-94823: Improve coverage in tokenizer.c:valid_utf8 (GH-94856)Michael Droettboom2022-08-161-0/+61
| | | | | | When loading a source file from disk, there is a separate UTF-8 validator distinct from the one in `unicode_decode_utf8`. This exercises that code path with the same set of invalid inputs as we use for testing the "other" UTF-8 decoder.
* GH-95736: fix IsolatedAsyncioTestCase to initialize Runner before calling ↵Kumar Aditya2022-08-163-0/+20
| | | | setup functions (#95898)
* GH-95245: Move weakreflist into the pre-header. (GH-95996)Mark Shannon2022-08-166-20/+105
|
* remove repetitive credit from what's new in 3.11 rst (GH-96024)Irit Katriel2022-08-161-1/+0
|
* gh-95957: Add instructions for Tcl/Tk and OpenSSL on RHEL/CentOS 7 (#95964)Christian Heimes2022-08-166-6/+46
| | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* Change CODEOWNERS entries for iritkatriel (GH-96008)Irit Katriel2022-08-161-2/+1
|
* gh-95808: Add missing early returns in _asynciomodule.c (#95809)Yury Selivanov2022-08-151-2/+3
|
* gh-78143: IDLE - fix settings dialog page label. (#96009)Terry Jan Reedy2022-08-151-1/+1
| | | | '/Tab' should have been removed from the font page label when the tab-spaces setting was moved to the Windows page.
* GH-94808: Test __build_class__ inside non-dict __builtins__ (GH-95932)Michael Droettboom2022-08-151-5/+9
|
* GH-95899: fix asyncio.Runner to call set_event_loop only once (#95900)Kumar Aditya2022-08-153-3/+20
|
* gh-95231: Disable md5 & crypt modules if FIPS is enabled (GH-94742)Shreenidhi Shedi2022-08-152-1/+4
| | | | | | | | | | | | | | | | | | | | | If kernel fips is enabled, we get permission error upon doing `import crypt`. So, if kernel fips is enabled, disable the unallowed hashing methods. Python 3.9.1 (default, May 10 2022, 11:36:26) [GCC 10.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import crypt Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.9/crypt.py", line 117, in <module> _add_method('MD5', '1', 8, 34) File "/usr/lib/python3.9/crypt.py", line 94, in _add_method result = crypt('', salt) File "/usr/lib/python3.9/crypt.py", line 82, in crypt return _crypt.crypt(word, salt) PermissionError: [Errno 1] Operation not permitted Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
* gh-95707: Fix function signature (GH-95995)Christian Heimes2022-08-151-1/+2
|
* GH-95707: Fix uses of `Py_TPFLAGS_MANAGED_DICT` (GH-95854)Mark Shannon2022-08-157-25/+137
| | | | | | * Make sure that tp_dictoffset is correct with Py_TPFLAGS_MANAGED_DICT is set. * Avoid traversing managed dict twice when subclassing class with Py_TPFLAGS_MANAGED_DICT set.
* gh-95853: Address wasm build and test issues (GH-95985)Christian Heimes2022-08-153-6/+14
|
* Clarify asyncio.Runner docs re: loop_factory (#95979)Kumar Aditya2022-08-141-1/+3
|
* GH-95977: Speed up calling pure python descriptor __get__ with vectorcall ↵Kumar Aditya2022-08-142-1/+3
| | | | (gh-95978)
* bpo-40222: Mark exception table function in the dis module as private (#95961)Pablo Galindo Salgado2022-08-141-8/+8
|
* gh-95853: Add script to automate WASM build (GH-95828)Christian Heimes2022-08-139-21/+827
| | | | | | | | | | | | Automate WASM build with a new Python script. The script provides several build profiles with configure flags for Emscripten flavors and WASI. The script can detect and use Emscripten SDK and WASI SDK from default locations or env vars. ``configure`` now detects Node arguments and creates HOSTRUNNER arguments for Node 16. It also sets correct arguments for ``wasm64-emscripten``. Co-authored-by: Brett Cannon <brett@python.org>
* gh-89313: Add hashlib.file_digest to whatsnew 3.11 (GH-95965)Christian Heimes2022-08-131-0/+4
| | | Automerge-Triggered-By: GH:pablogsal
* bpo-25625: Document contextlib.chdir in the 3.11 what's new (#95962)Pablo Galindo Salgado2022-08-131-0/+7
|
* gh-95914: Add paragraph about PEP 654 in main body of 'What's New in 3.11' ↵Irit Katriel2022-08-131-2/+19
| | | | (GH-95937)
* gh-90928: Improve static initialization of keywords tuple in AC (#95907)Erlend E. Aasland2022-08-1381-6801/+2750
|
* gh-94439: typing docs: Add minimum version to `__required_keys__` and ↵Howie Zhao2022-08-131-0/+5
| | | | `__optional_keys__` (#95373)
* Fix typo in internal/pycore_atomic.h (GH-95939)fluesvamp2022-08-131-1/+1
|
* gh-94909: fix joining of absolute and relative Windows paths in pathlib ↵Barney Gale2022-08-123-33/+14
| | | | | | | | | | | | | | | | | | | | | | (GH-95450) Have pathlib use `os.path.join()` to join arguments to the `PurePath` initialiser, which fixes a minor bug when handling relative paths with drives. Previously: ```python >>> from pathlib import PureWindowsPath >>> a = 'C:/a/b' >>> b = 'C:x/y' >>> PureWindowsPath(a, b) PureWindowsPath('C:x/y') ``` Now: ```python >>> PureWindowsPath(a, b) PureWindowsPath('C:/a/b/x/y') ```
* gh-94996: Disallow lambda pos only params with feature_version < (3, 8) ↵Shantanu2022-08-123-4/+11
| | | | (GH-95934)
* gh-94996: Disallow parsing pos only params with feature_version < (3, 8) ↵Shantanu2022-08-125-6/+15
| | | | (GH-94997)
* gh-90300: [docs] Add whatsnew entry for new --help output (GH-95856) (GH-95928)Łukasz Langa2022-08-121-0/+6
| | | Co-authored-by: Éric <merwok@netwok.org>
* gh-82180: Document support for non-integer arg removed from grp.getgrgid in ↵Hugo van Kemenade2022-08-121-3/+2
| | | | 3.10 (GH-95346)
* gh-95914: Add missing PEPs to the Summary section of 3.11 What's New (GH-95916)CAM Gerlach2022-08-121-5/+23
|
* gh-95922: compiler's eliminate_empty_basic_blocks ignores the last block of ↵Irit Katriel2022-08-122-8/+7
| | | | the compilation unit (GH-95924)
* gh-95724: Clarify taskgroups.py license. (#95847)Yury Selivanov2022-08-112-2/+4
|
* gh-95273: Improve sqlite3.complete_statement docs (#95840)Erlend E. Aasland2022-08-113-39/+40
| | | | Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-90928: Statically Initialize the Keywords Tuple in Clinic-Generated Code ↵Eric Snow2022-08-11127-619/+16240
| | | | | | | | | | | | | | | | (gh-95860) We only statically initialize for core code and builtin modules. Extension modules still create the tuple at runtime. We'll solve that part of interpreter isolation separately. This change includes generated code. The non-generated changes are in: * Tools/clinic/clinic.py * Python/getargs.c * Include/cpython/modsupport.h * Makefile.pre.in (re-generate global strings after running clinic) * very minor tweaks to Modules/_codecsmodule.c and Python/Python-tokenize.c All other changes are generated code (clinic, global strings).
* gh-95841: IDLE - Revise Windows local doc url (#95845)Terry Jan Reedy2022-08-111-4/+14
| | | | | | #91242 replaced the Windows chm help file with a copy of the html docs. This PR replaces the IDLE code that fetches the Windows local help url passed to os.startfile. Co-authored-by: Steve Dower
* gh-84910: Change 'IDLE Help' to 'IDLE Doc' (#95873)Terry Jan Reedy2022-08-111-1/+1
| | | | 'IDLE Help' was a plain text file. It was superceded years ago by a copy of the much more complete html doc. .
* gh-87092: compiler's codegen stage uses int jump target labels, and the ↵Irit Katriel2022-08-111-70/+52
| | | | target pointer is only calculated just before optimization stage (GH-95655)
* GH-95818: Skip incomplete frames in `PyThreadState_GetFrame` (GH-95886)Mark Shannon2022-08-113-2/+29
|
* Update _PyEval_AddPendingCall comment (#95817)zhanpon2022-08-111-2/+2
|
* gh-95878: Fix format char in datetime CAPI tests (GH-95879)Christian Heimes2022-08-111-4/+4
|