summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-40280: Skip dysfunctional pipe tests on Emscripten (GH-31770)Christian Heimes2022-03-081-0/+12
|
* bpo-24959: fix unittest.assertRaises bug where traceback entries are dropped ↵Irit Katriel2022-03-083-14/+95
| | | | from chained exceptions (GH-23688)
* bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760)Stefan Zabka2022-03-082-1/+3
| | | | | | This change aligns the documentation at https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.Server with the actual implementation Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-23325: Fix SIG_IGN and SIG_DFL int comparison in signal module (GH-31759)Christian Heimes2022-03-082-13/+25
|
* bpo-46841: Don't use an oparg counter for `STORE_SUBSCR` (GH-31742)Brandt Bucher2022-03-087-29/+28
|
* Removed confusing reference to sys (GH-31638)David Gilbertson2022-03-081-3/+3
|
* bpo-40280: Block more non-working syscalls in Emscripten (GH-31757)Christian Heimes2022-03-088-10/+37
| | | | | | | | | - getgroups always fails. - geteuid and getegid always return 0 (root), which confuse tarfile and tests. - hardlinks (link, linkat) always fails. - non-encodable file names are not supported by NODERAWFS layer. - mark more tests with dependency on subprocess and multiprocessing. Mocking does not work if the module fails to import.
* bpo-44439: _ZipWriteFile.write() handle buffer protocol correctly (GH-29468)Ma Lin2022-03-083-1/+19
| | | | Co-authored-by: Marco Ribeiro <marcoffee@users.noreply.github.com>
* bpo-40059: Add tomllib (PEP-680) (GH-31498)Taneli Hukkinen2022-03-0890-1/+1479
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new standard library module, `tomllib`, for parsing TOML. The implementation is based on Tomli (https://github.com/hukkin/tomli). ## Steps taken (converting `tomli` to `tomllib`) - Move everything in `tomli:src/tomli` to `Lib/tomllib`. Exclude `py.typed`. - Remove `__version__ = ...` line from `Lib/tomllib/__init__.py` - Move everything in `tomli:tests` to `Lib/test/test_tomllib`. Exclude the following test data dirs recursively: - `tomli:tests/data/invalid/_external/` - `tomli:tests/data/valid/_external/` - Create `Lib/test/test_tomllib/__main__.py`: ```python import unittest from . import load_tests unittest.main() ``` - Add the following to `Lib/test/test_tomllib/__init__.py`: ```python import os from test.support import load_package_tests def load_tests(*args): return load_package_tests(os.path.dirname(__file__), *args) ``` Also change `import tomli as tomllib` to `import tomllib`. - In `cpython/Lib/tomllib/_parser.py` replace `__fp` with `fp` and `__s` with `s`. Add the `/` to `load` and `loads` function signatures. - Run `make regen-stdlib-module-names` - Create `Doc/library/tomllib.rst` and reference it in `Doc/library/fileformats.rst`
* bpo-46878: Purge 'non-standard' from sqlite3 docstrings (GH-31612)Erlend Egeberg Aasland2022-03-086-69/+67
|
* docs: Don't use code formatting for emphasis (GH-30519)William Andrea2022-03-081-1/+1
|
* Removed ambiguity in __init_subclass__ docs (GH-31540)David Gilbertson2022-03-081-1/+1
|
* bpo-46494: Mention the typing_extensions pkg in typing docs (GH-31260)Meer Suri2022-03-081-0/+4
|
* bpo-43224: Implement PEP 646 changes to typing.py (GH-31021)Matthew Rahtz2022-03-083-22/+646
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* importlib.metadata: Remove empty footnote section (GH-30451)Ned Batchelder2022-03-081-3/+0
|
* bpo-46170: Improve the error message when subclassing NewType (GH-30268)James Hilton-Balfe2022-03-083-0/+27
| | | | | Co-authored-by: Alex Waygood <alex.waygood@gmail.com> Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-45680: Improve docs on subscriptions w.r.t. `GenericAlias` objects ↵Alex Waygood2022-03-081-20/+30
| | | | (GH-29479)
* bpo-46933: Fix make distclean regression (GH-31737)Erlend Egeberg Aasland2022-03-071-1/+1
|
* bpo-46932: Update bundled libexpat to 2.4.7 (GH-31736)Steve Dower2022-03-073-14/+156
|
* bpo-46841: Use inline caching for calls (GH-31709)Brandt Bucher2022-03-0716-732/+491
|
* bpo-44549: Update bzip2 to 1.0.8 in Windows builds to mitigate CVE-2016-3189 ↵Steve Dower2022-03-074-3/+5
| | | | and CVE-2019-12900 (GH-31731)
* Merge remote-tracking branch 'upstream/main'Pablo Galindo2022-03-0726-566/+572
|\
| * bpo-41370: Evaluate strings as forward refs in PEP 585 generics (GH-30900)Niklas Rosenstein2022-03-073-2/+49
| | | | | | | | | | | | This removes discrepancy between list["int"] and List["int"]. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
| * bpo-46948: Fix CVE-2022-26488 by ensuring the Windows Installer correctly ↵Steve Dower2022-03-0712-4/+27
| | | | | | | | uses the install path during repair (GH-31726)
| * bpo-46933: Make pwd module optional (GH-31700)Christian Heimes2022-03-0711-560/+496
| | | | | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* | Post 3.11.0a6Pablo Galindo2022-03-071-1/+1
| |
* | Python 3.11.0a6v3.11.0a6Pablo Galindo2022-03-07122-272/+1244
|/
* bpo-46940: Don't override existing AttributeError suggestion information ↵Pablo Galindo Salgado2022-03-074-15/+48
| | | | | | | | | | | | (GH-31710) When an exception is created in a nested call to PyObject_GetAttr, any external calls will override the context information of the AttributeError that we have already placed in the most internal call. This will cause the suggestions we create to nor work properly as the attribute name and object that we will be using are the incorrect ones. To avoid this, we need to check first if these attributes are already set and bail out if that's the case.
* bpo-46937: convert remaining functions to AC in _weakref (GH-31705)Kumar Aditya2022-03-072-22/+73
|
* bpo-43292: Fix file leak in `ET.iterparse()` when not exhausted (GH-31696)Jacob Walls2022-03-074-7/+20
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Use assertEqual, not assertEquals, in test_unicode (GH-31718)Dennis Sweeney2022-03-071-4/+4
| | | Fixes a DeprecationWarning
* Clean up CODEOWNERS (#31715)Jelle Zijlstra2022-03-071-16/+8
| | | crypto-team apparently doesn't exist and skrah no longer has write access. Thanks @isidentical for noticing this.
* bpo-45582: Don't fail if ENV_PATH is None in getpath.py (GH-31699)Christian Heimes2022-03-061-1/+1
|
* Update grammar_grapher with the new forced (&&) directive (#31704)Luca Chiodini2022-03-061-0/+3
|
* bpo-14156: Make argparse.FileType work correctly for binary file modes when ↵MojoVampire2022-03-063-17/+110
| | | | | | | argument is '-' (GH-13165) Also made modes containing 'a' or 'x' act the same as a mode containing 'w' when argument is '-' (so 'a'/'x' return sys.stdout like 'w', and 'ab'/'xb' return sys.stdout.buffer like 'wb').
* bpo-46921: Vectorcall support for `super()` (GH-31687)Ken Jin2022-03-063-2/+62
| | | Co-Authored-By: Dong-hee Na <donghee.na@python.org>
* bpo-46864: Deprecate PyBytesObject.ob_shash. (GH-31598)Inada Naoki2022-03-064-1/+23
|
* Remove trailing spaces (GH-31695)Serhiy Storchaka2022-03-0513-23/+24
|
* bpo-46927: Include the type's name in the error message for subscripting ↵Serhiy Storchaka2022-03-054-3/+8
| | | | non-generic types (GH-31694)
* Lib/typing.py copy edits originating from GH-31061 (#31684)Matt Bogosian2022-03-051-3/+3
|
* bpo-38738: Fix formatting of True and False in the threading documentation ↵Géry Ogam2022-03-041-8/+8
| | | | | | (GH-31678) * Fix formatting of True and False in the threading documentation * Update threading.rst
* bpo-46841: Fix BINARY_OP's handling of inline caches (GH-31671)Brandt Bucher2022-03-043-3/+7
|
* bpo-25415: Remove confusing sentence from IOBase docstrings (PR-31631)slateny2022-03-044-13/+8
|
* bpo-46541: Remove usage of _Py_IDENTIFIER from lzma module (GH-31683)Dong-hee Na2022-03-041-10/+10
|
* bpo-46841: Fix error message hacks in `GET_AWAITABLE` (GH-31664)Brandt Bucher2022-03-048-32/+37
|
* bpo-46903: Handle str-subclasses in virtual instance dictionaries. (GH-31658)Mark Shannon2022-03-045-10/+46
|
* bpo-46744: Move Windows ARM64 installation directory to correct ProgramFiles ↵Steve Dower2022-03-043-38/+4
| | | | (GH-31677)
* bpo-46355: Update pythoncapi_compat project URL (GH-31670)Victor Stinner2022-03-031-2/+2
|
* bpo-46913: Skip test_ctypes.test_shorts() on UBSan (GH-31674)Victor Stinner2022-03-031-0/+3
| | | | | If Python is built with UBSan, test_ctypes now skips test_shorts(). This change allows to run test_ctypes to check for new UBSan regression, but the known test_shorts() undefined behavior must be fixed.
* bpo-46913: test_hashlib skips _sha3 tests on UBSan (GH-31673)Victor Stinner2022-03-031-8/+26
| | | | | | | If Python is built with UBSan, test_hashlib skips tests on the _sha3 extension which currently has undefined behaviors. This change allows to run test_hashlib to check for new UBSan regression, but the known _sha3 undefined behavior must be fixed.