Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | bpo-45711: use exc_value instead of exc_type to determine if exc_info is ↵ | Irit Katriel | 2021-11-25 | 5 | -36/+93 | |
| | | | | valid. Add more assertions. (GH-29627) | |||||
* | bpo-45727: Only trigger the 'did you forgot a comma' error suggestion if ↵ | Pablo Galindo Salgado | 2021-11-24 | 8 | -8/+15 | |
| | | | | inside parentheses (GH-29757) | |||||
* | bpo-45893: Add missing extern C to initconfig.h (GH-29761) | Christian Heimes | 2021-11-24 | 2 | -0/+10 | |
| | | | Co-authored-by: Steve Dower <steve.dower@python.org> | |||||
* | bpo-45693: Document `port` parameter to `loop.create_server` (GH-29760) | Jim Crist-Harif | 2021-11-24 | 1 | -0/+5 | |
| | | | | | | | | Document the `port` parameter to `loop.create_server` in `asyncio`. In particular, note that if `host` resolves to multiple network interfaces, passing in `port=0` will result in a different random unused port being used for each interface. Automerge-Triggered-By: GH:ericvsmith | |||||
* | Fix typo in freeze_modules (#29744) | Kumar Aditya | 2021-11-24 | 1 | -1/+1 | |
| | ||||||
* | bpo-45020: Fix strict-prototypes warning (GH-29755) | Christian Heimes | 2021-11-24 | 2 | -2/+2 | |
| | ||||||
* | bpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750) | Pablo Galindo Salgado | 2021-11-24 | 2 | -9/+9 | |
| | ||||||
* | bpo-45881: Use CC from env first for cross building (GH-29752) | Christian Heimes | 2021-11-24 | 2 | -10/+11 | |
| | ||||||
* | bpo-45847: Fix _crypt detection on Ubuntu (GH-29743) | Christian Heimes | 2021-11-24 | 2 | -2/+2 | |
| | ||||||
* | bpo-45847: Port _uuid to PY_STDLIB_MOD (GH-29741) | Christian Heimes | 2021-11-24 | 6 | -74/+391 | |
| | ||||||
* | bpo-45514: Deprecate importlib resources legacy functions. (GH-29036) | Jason R. Coombs | 2021-11-24 | 10 | -84/+204 | |
| | | | | | | | | | | | * bpo-45514: Apply changes from importlib_resources@a3ef4128c6 * Mark legacy functions as deprecated in the docs and link to the migration docs in importlib_resources docs. * Apply changes from importlib_resources@329ae9d5f2c. * Indicate importlib.resources as a module. Co-authored-by: Filipe Laíns <lains@riseup.net> | |||||
* | bpo-45847: Port _posixshmem to PY_STDLIB_MOD (GH-29738) | Erlend Egeberg Aasland | 2021-11-24 | 5 | -70/+98 | |
| | ||||||
* | bpo-45886: Allow overriding freeze command for cross compiling (GH-29735) | Christian Heimes | 2021-11-24 | 3 | -43/+48 | |
| | ||||||
* | bpo-45616: Let py.exe distinguish between v3.1 and v3.10 (GH-29731) | Zachary Ware | 2021-11-24 | 2 | -1/+14 | |
| | ||||||
* | bpo-45847: Port _gdbm to PY_STDLIB_MOD (GH-29720) | Christian Heimes | 2021-11-23 | 5 | -52/+136 | |
| | ||||||
* | bpo-45847: Port _ssl and _hashlib to PY_STDLIB_MOD (GH-29727) | Christian Heimes | 2021-11-23 | 4 | -157/+348 | |
| | ||||||
* | bpo-45847: Port _crypt to PY_STDLIB_MOD (GH-29725) | Christian Heimes | 2021-11-23 | 4 | -63/+268 | |
| | ||||||
* | bpo-45873: Restore Python 3.6 compatibility (GH-29730) | Christian Heimes | 2021-11-23 | 3 | -3/+28 | |
| | | | Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> | |||||
* | bpo-39026: Fix Python.h when building with Xcode (GH-29488) | Victor Stinner | 2021-11-23 | 3 | -3/+3 | |
| | | | | Fix Python.h to build C extensions with Xcode: remove a relative include from Include/cpython/pystate.h. | |||||
* | bpo-45873: Get rid of bootstrap_python (#29717) | Guido van Rossum | 2021-11-23 | 8 | -431/+259 | |
| | | | | | | | | | | | | | Instead we use $(PYTHON_FOR_REGEN) .../deepfreeze.py with the frozen .h file as input, as we did for Windows in bpo-45850. We also get rid of the code that generates the .h files when make regen-frozen is run (i.e., .../make_frozen.py), and the MANIFEST file. Restore Python 3.8 and 3.9 as Windows host Python again Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | |||||
* | bpo-45703: Invalidate _NamespacePath cache on importlib.invalidate_ca… ↵ | Miro Hrončok | 2021-11-23 | 4 | -1/+54 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-29384) Consider the following directory structure: . └── PATH1 └── namespace └── sub1 └── __init__.py And both PATH1 and PATH2 in sys path: $ PYTHONPATH=PATH1:PATH2 python3.11 >>> import namespace >>> import namespace.sub1 >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace']) >>> ... While this interpreter still runs, PATH2/namespace/sub2 is created: . ├── PATH1 │ └── namespace │ └── sub1 │ └── __init__.py └── PATH2 └── namespace └── sub2 └── __init__.py The newly created module cannot be imported: >>> ... >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace']) >>> import namespace.sub2 Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'namespace.sub2' Calling importlib.invalidate_caches() now newly allows to import it: >>> import importlib >>> importlib.invalidate_caches() >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace']) >>> import namespace.sub2 >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace', '.../PATH2/namespace']) This was not previously possible. | |||||
* | bpo-45783: Preserve file moves and deletions in the tests for the freeze ↵ | Eric Snow | 2021-11-23 | 3 | -35/+17 | |
| | | | | | | tool. (GH-29527) Use shutil.copytree rather than Git, which might be missing (or configured differently) when testing Python built from a source release. | |||||
* | bpo-45878: convert `try/except` to `self.assertRaises` in ↵ | Nikita Sobolev | 2021-11-23 | 2 | -14/+6 | |
| | | | | `Lib/ctypes/test/test_functions.py` (GH-29721) | |||||
* | Clarify that discutils.(plat)include is for CPython's headers (GH-29578) | Petr Viktorin | 2021-11-23 | 1 | -2/+4 | |
| | | | | | | | Change the docs to note that "include" and "platinclude" are for CPython's headers, and not necessarily for headers of third-party libraries. See discussion in: https://discuss.python.org/t/clarification-on-a-wheels-header-data/9305/19 | |||||
* | bpo-44525: Copy free variables in bytecode to allow calls to inner functions ↵ | Mark Shannon | 2021-11-23 | 25 | -157/+269 | |
| | | | | | | | | | | | to be specialized (GH-29595) * Make internal APIs that take PyFrameConstructor take a PyFunctionObject instead. * Add reference to function to frame, borrow references to builtins and globals. * Add COPY_FREE_VARS instruction to allow specialization of calls to inner functions. | |||||
* | bpo-45847: Port _socket to PY_STDLIB_MOD (GH-29713) | Erlend Egeberg Aasland | 2021-11-23 | 4 | -4/+19 | |
| | ||||||
* | bpo-45847: Fix xxlimited and xxlimited_35 build conditions (GH-29715) | Erlend Egeberg Aasland | 2021-11-23 | 2 | -4/+4 | |
| | ||||||
* | bpo-45561: Run smelly.py tool from $(srcdir) (GH-29138) | Neil Schemenauer | 2021-11-23 | 3 | -4/+8 | |
| | ||||||
* | bpo-42238: [doc] Announce the future removal of make suspicous. (GH-29652) | Julien Palard | 2021-11-22 | 2 | -0/+6 | |
| | | | | | * bpo-42238: [doc] Announce the future removal of make suspicous. * Add a news entry. | |||||
* | bpo-45847: Port xxlimited and xxlimited_35 to PY_STDLIB_MOD (GH-29707) | Erlend Egeberg Aasland | 2021-11-22 | 4 | -6/+99 | |
| | ||||||
* | bpo-45850: Implement deep-freeze on Windows (#29648) | Guido van Rossum | 2021-11-22 | 9 | -24/+500 | |
| | | | | | | Implement changes to build with deep-frozen modules on Windows. Note that we now require Python 3.10 as the "bootstrap" or "host" Python. This causes a modest startup speed (around 7%) on Windows. | |||||
* | bpo-45871: Refactor except matcher validation into a separate function so ↵ | Irit Katriel | 2021-11-22 | 2 | -23/+48 | |
| | | | | that it can be reused. Add missing unit test. (GH-29711) | |||||
* | bpo-45847: port _struct to PY_STDLIB_MOD (GH-29706) | Christian Heimes | 2021-11-22 | 4 | -2/+23 | |
| | ||||||
* | bpo-45859: Mark test_field_descriptor in test_collections as CPython-only ↵ | Carl Friedrich Bolz-Tereick | 2021-11-22 | 1 | -0/+1 | |
| | | | | (GH-29691) | |||||
* | bpo-45847: Port audioop, _csv, and _posixsubprocess to PY_STDLIB_MOD_SIMPLE ↵ | Erlend Egeberg Aasland | 2021-11-22 | 4 | -4/+56 | |
| | | | | | (GH-29705) Automerge-Triggered-By: GH:tiran | |||||
* | bpo-45847: Port nis module to PY_STDLIB_MOD (GH-29699) | Christian Heimes | 2021-11-22 | 5 | -44/+350 | |
| | ||||||
* | bpo-45813: Make sure that frame->generator is NULLed when generator is ↵ | Mark Shannon | 2021-11-22 | 4 | -0/+12 | |
| | | | | deallocated. (GH-29700) | |||||
* | bpo-45847: Port compression libs to PY_STDLIB_MOD (GH-29702) | Christian Heimes | 2021-11-22 | 5 | -70/+794 | |
| | ||||||
* | bpo-45847: Port mmap, select, and _xxsubinterpreters to Py_STDLIB_MOD (GH-29703) | Erlend Egeberg Aasland | 2021-11-22 | 4 | -4/+83 | |
| | ||||||
* | bpo-44649: Fix dataclasses(slots=True) with a field with a default, but ↵ | Eric V. Smith | 2021-11-22 | 3 | -6/+37 | |
| | | | | | init=False (GH-29692) Special handling is needed, because for non-slots dataclasses the instance attributes are not set: reading from a field just references the class's attribute of the same name, which contains the default value. But this doesn't work for classes using __slots__: they don't read the class's attribute. So in that case (and that case only), initialize the instance attribute. Handle this for both normal defaults, and for fields using default_factory. | |||||
* | bpo-45847: Port fcntl to Py_STDLIB_MOD (GH-29696) | Erlend Egeberg Aasland | 2021-11-22 | 5 | -28/+60 | |
| | | | Co-authored-by: Christian Heimes <christian@python.org> | |||||
* | bpo-45847: Various PY_STDLIB_MOD cleanups (GH-29697) | Christian Heimes | 2021-11-22 | 3 | -218/+61 | |
| | ||||||
* | bpo-45847: Port _lfprof, _opcode, _asyncio, _queue, _statistics, and _typing ↵ | Erlend Egeberg Aasland | 2021-11-22 | 4 | -58/+184 | |
| | | | | | to PY_STDLIB_MOD_SIMPLE (GH-29690) Automerge-Triggered-By: GH:tiran | |||||
* | Fix out-of-tree build support for multissltest (GH-29694) | Christian Heimes | 2021-11-22 | 2 | -6/+12 | |
| | ||||||
* | bpo-45847: Port _bisect, _heapq, _json, _pickle, _random, and _zoneinfo to ↵ | Erlend Egeberg Aasland | 2021-11-22 | 4 | -19/+136 | |
| | | | | | PY_STDLIB_MOD_SIMPLE (GH-29689) Automerge-Triggered-By: GH:tiran | |||||
* | bpo-45847: Port array, _contextvars, math, and cmath to PY_STDLIB_MOD_SIMPLE ↵ | Erlend Egeberg Aasland | 2021-11-22 | 4 | -6/+90 | |
| | | | | (GH-29688) | |||||
* | bpo-45723: Add helpers for save/restore env (GH-29637) | Erlend Egeberg Aasland | 2021-11-22 | 3 | -41/+73 | |
| | ||||||
* | bpo-45766: Add direct proportion option to linear_regression(). (#29490) | Raymond Hettinger | 2021-11-21 | 4 | -8/+42 | |
| | | | | | | | | | | | | | | | | | * bpo-45766: Add direct proportion option to linear_regression(). * Update 2021-11-09-09-18-06.bpo-45766.dvbcMf.rst * Use ellipsis to avoid round-off issues. * Update Misc/NEWS.d/next/Library/2021-11-09-09-18-06.bpo-45766.dvbcMf.rst Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> * Update signature in main docs * Fix missing comma Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> | |||||
* | bpo-45847: Port codecs and unicodedata to PY_STDLIB_MOD (GH-29685) | Christian Heimes | 2021-11-21 | 4 | -5/+166 | |
| | ||||||
* | bpo-45847: Port grp, spwd, termios, resource, syslog to PY_STDLIB_MOD (GH-29668) | Christian Heimes | 2021-11-21 | 5 | -25/+254 | |
| |