Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | bpo-46771: Implement asyncio context managers for handling timeouts (GH-31394) | Andrew Svetlov | 2022-03-10 | 4 | -0/+384 | |
| | | | | | | | | | | Example: async with asyncio.timeout(5): await some_task() Will interrupt the await and raise TimeoutError if some_task() takes longer than 5 seconds. Co-authored-by: Guido van Rossum <guido@python.org> | |||||
* | bpo-46581: Propagate private vars via _GenericAlias.copy_with (GH-31061) | Matt Bogosian | 2022-03-10 | 4 | -7/+30 | |
| | | | | | | | | | | GH-26091 added the _typevar_types and _paramspec_tvars instance variables to _GenericAlias. However, they were not propagated consistently. This commit addresses the most prominent deficiency identified in bpo-46581 (namely their absence from _GenericAlias.copy_with), but there could be others. Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | |||||
* | bpo-46917: Require IEEE 754 to build Python (GH-31790) | Victor Stinner | 2022-03-10 | 2 | -0/+5 | |
| | | | | Building Python now requires support of IEEE 754 floating point numbers. | |||||
* | bpo-40280: Skip more tests/features that don't apply to Emscripten (GH-31791) | Christian Heimes | 2022-03-10 | 6 | -9/+28 | |
| | | | | | | | - fd inheritance can't be modified because Emscripten doesn't support subprocesses anyway. - setpriority always fails - geteuid no longer causes problems with latest emsdk - umask is a stub - geteuid / getuid always return 0, but process cannot chown to random uid. | |||||
* | bpo-46881: Statically allocate and initialize the latin1 characters. (GH-31616) | Kumar Aditya | 2022-03-09 | 6 | -66/+317 | |
| | ||||||
* | bpo-45138: Revert GH-28240: Expand traced SQL statements (GH-31788) | Erlend Egeberg Aasland | 2022-03-09 | 5 | -108/+15 | |
| | | | | | This reverts commit d1777515f9f53b452a4231d68196a7c0e5deb879. Automerge-Triggered-By: GH:JelleZijlstra | |||||
* | bpo-40059: Fix installation of tomllib (GH-31784) | Dominic Davis-Foster | 2022-03-09 | 1 | -0/+1 | |
| | ||||||
* | bpo-46245: Add optional parameter dir_fd in shutil.rmtree() (GH-30365) | Serhiy Storchaka | 2022-03-09 | 5 | -7/+49 | |
| | ||||||
* | Fix 3.11 what's new formatting (GH-31763) | Ken Jin | 2022-03-09 | 1 | -4/+9 | |
| | ||||||
* | bpo-45138: Expand traced SQL statements in `sqlite3` trace callback (GH-28240) | Erlend Egeberg Aasland | 2022-03-09 | 5 | -15/+108 | |
| | ||||||
* | Docstring: replace pysqlite with sqlite3 (GH-31758) | Erlend Egeberg Aasland | 2022-03-09 | 3 | -9/+9 | |
| | | | | Replace two instances of "pysqlite" with "sqlite3" in sqlite3 docstrings. Also reword "is a no-op" to "does nothing" for clarity. | |||||
* | bpo-40280: Skip dysfunctional pipe tests on Emscripten (GH-31770) | Christian Heimes | 2022-03-08 | 1 | -0/+12 | |
| | ||||||
* | bpo-24959: fix unittest.assertRaises bug where traceback entries are dropped ↵ | Irit Katriel | 2022-03-08 | 3 | -14/+95 | |
| | | | | from chained exceptions (GH-23688) | |||||
* | bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760) | Stefan Zabka | 2022-03-08 | 2 | -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 Heimes | 2022-03-08 | 2 | -13/+25 | |
| | ||||||
* | bpo-46841: Don't use an oparg counter for `STORE_SUBSCR` (GH-31742) | Brandt Bucher | 2022-03-08 | 7 | -29/+28 | |
| | ||||||
* | Removed confusing reference to sys (GH-31638) | David Gilbertson | 2022-03-08 | 1 | -3/+3 | |
| | ||||||
* | bpo-40280: Block more non-working syscalls in Emscripten (GH-31757) | Christian Heimes | 2022-03-08 | 8 | -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 Lin | 2022-03-08 | 3 | -1/+19 | |
| | | | | Co-authored-by: Marco Ribeiro <marcoffee@users.noreply.github.com> | |||||
* | bpo-40059: Add tomllib (PEP-680) (GH-31498) | Taneli Hukkinen | 2022-03-08 | 90 | -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 Aasland | 2022-03-08 | 6 | -69/+67 | |
| | ||||||
* | docs: Don't use code formatting for emphasis (GH-30519) | William Andrea | 2022-03-08 | 1 | -1/+1 | |
| | ||||||
* | Removed ambiguity in __init_subclass__ docs (GH-31540) | David Gilbertson | 2022-03-08 | 1 | -1/+1 | |
| | ||||||
* | bpo-46494: Mention the typing_extensions pkg in typing docs (GH-31260) | Meer Suri | 2022-03-08 | 1 | -0/+4 | |
| | ||||||
* | bpo-43224: Implement PEP 646 changes to typing.py (GH-31021) | Matthew Rahtz | 2022-03-08 | 3 | -22/+646 | |
| | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | |||||
* | importlib.metadata: Remove empty footnote section (GH-30451) | Ned Batchelder | 2022-03-08 | 1 | -3/+0 | |
| | ||||||
* | bpo-46170: Improve the error message when subclassing NewType (GH-30268) | James Hilton-Balfe | 2022-03-08 | 3 | -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 Waygood | 2022-03-08 | 1 | -20/+30 | |
| | | | | (GH-29479) | |||||
* | bpo-46933: Fix make distclean regression (GH-31737) | Erlend Egeberg Aasland | 2022-03-07 | 1 | -1/+1 | |
| | ||||||
* | bpo-46932: Update bundled libexpat to 2.4.7 (GH-31736) | Steve Dower | 2022-03-07 | 3 | -14/+156 | |
| | ||||||
* | bpo-46841: Use inline caching for calls (GH-31709) | Brandt Bucher | 2022-03-07 | 16 | -732/+491 | |
| | ||||||
* | bpo-44549: Update bzip2 to 1.0.8 in Windows builds to mitigate CVE-2016-3189 ↵ | Steve Dower | 2022-03-07 | 4 | -3/+5 | |
| | | | | and CVE-2019-12900 (GH-31731) | |||||
* | Merge remote-tracking branch 'upstream/main' | Pablo Galindo | 2022-03-07 | 26 | -566/+572 | |
|\ | ||||||
| * | bpo-41370: Evaluate strings as forward refs in PEP 585 generics (GH-30900) | Niklas Rosenstein | 2022-03-07 | 3 | -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 Dower | 2022-03-07 | 12 | -4/+27 | |
| | | | | | | | | uses the install path during repair (GH-31726) | |||||
| * | bpo-46933: Make pwd module optional (GH-31700) | Christian Heimes | 2022-03-07 | 11 | -560/+496 | |
| | | | | | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> | |||||
* | | Post 3.11.0a6 | Pablo Galindo | 2022-03-07 | 1 | -1/+1 | |
| | | ||||||
* | | Python 3.11.0a6v3.11.0a6 | Pablo Galindo | 2022-03-07 | 122 | -272/+1244 | |
|/ | ||||||
* | bpo-46940: Don't override existing AttributeError suggestion information ↵ | Pablo Galindo Salgado | 2022-03-07 | 4 | -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 Aditya | 2022-03-07 | 2 | -22/+73 | |
| | ||||||
* | bpo-43292: Fix file leak in `ET.iterparse()` when not exhausted (GH-31696) | Jacob Walls | 2022-03-07 | 4 | -7/+20 | |
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | |||||
* | Use assertEqual, not assertEquals, in test_unicode (GH-31718) | Dennis Sweeney | 2022-03-07 | 1 | -4/+4 | |
| | | | Fixes a DeprecationWarning | |||||
* | Clean up CODEOWNERS (#31715) | Jelle Zijlstra | 2022-03-07 | 1 | -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 Heimes | 2022-03-06 | 1 | -1/+1 | |
| | ||||||
* | Update grammar_grapher with the new forced (&&) directive (#31704) | Luca Chiodini | 2022-03-06 | 1 | -0/+3 | |
| | ||||||
* | bpo-14156: Make argparse.FileType work correctly for binary file modes when ↵ | MojoVampire | 2022-03-06 | 3 | -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 Jin | 2022-03-06 | 3 | -2/+62 | |
| | | | Co-Authored-By: Dong-hee Na <donghee.na@python.org> | |||||
* | bpo-46864: Deprecate PyBytesObject.ob_shash. (GH-31598) | Inada Naoki | 2022-03-06 | 4 | -1/+23 | |
| | ||||||
* | Remove trailing spaces (GH-31695) | Serhiy Storchaka | 2022-03-05 | 13 | -23/+24 | |
| | ||||||
* | bpo-46927: Include the type's name in the error message for subscripting ↵ | Serhiy Storchaka | 2022-03-05 | 4 | -3/+8 | |
| | | | | non-generic types (GH-31694) |