summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Move error test to the function that needs it. Improve error message. ↵Raymond Hettinger2021-12-102-11/+4
| | | | (GH-30008)
* bpo-43931: Export Python version as API data (GH-25577)Gabriele N. Tornetta2021-12-1012-0/+34
| | | | | When Python is embedded in other applications, it is not easy to determine which version of Python is being used. This change exposes the Python version as part of the API data. Tools like Austin (https://github.com/P403n1x87/austin) can benefit from this data when targeting applications like uWSGI, as the Python version can then be inferred systematically by looking at the exported symbols rather than relying on unreliable pattern matching or other hacks (like remote code execution etc...). Automerge-Triggered-By: GH:pablogsal
* bpo-46016: GHA Doc job now also runs "make check" (GH-30009)Victor Stinner2021-12-091-2/+9
| | | | The GitHub Action documentation job now also runs "make check" to check the documentation.
* bpo-46008: Make runtime-global object/type lifecycle functions and state ↵Eric Snow2021-12-0938-354/+811
| | | | | | | | | | | | consistent. (gh-29998) This change is strictly renames and moving code around. It helps in the following ways: * ensures type-related init functions focus strictly on one of the three aspects (state, objects, types) * passes in PyInterpreterState * to all those functions, simplifying work on moving types/objects/state to the interpreter * consistent naming conventions help make what's going on more clear * keeping API related to a type in the corresponding header file makes it more obvious where to look for it https://bugs.python.org/issue46008
* Remove an outdated comment. (GH-30010)Serhiy Storchaka2021-12-091-2/+0
|
* bpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997)Steve Dower2021-12-092-2/+7
|
* bpo-45654: Freeze the runpy module and stuff it imports (GH-29903)Kumar Aditya2021-12-097-0/+101
|
* bpo-45635: continue refactor of print_exception() to standardize error ↵Irit Katriel2021-12-091-78/+105
| | | | | handling (GH-29996) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-46016: Fix rest syntax of GH-29993 (GH-30006)Kumar Aditya2021-12-092-2/+2
|
* bpo-46025: Fix a crash in the atexit module for auto-unregistering functions ↵Pablo Galindo Salgado2021-12-093-1/+21
| | | | (GH-30002)
* bpo-25066: Added repr for multiprocessing.Event (GH-29749)Kumar Aditya2021-12-093-1/+18
| | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-45391: mark UnionType as a class in documentation (GH-28757)Bernát Gábor2021-12-091-1/+1
| | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* bpo-46007: Exclude PyUnicode_CHECK_INTERNED() from limited C API (GH-29987)Victor Stinner2021-12-094-4/+13
| | | | | | | Exclude the PyUnicode_CHECK_INTERNED() macro from the limited C API, because it uses the PyASCIIObject structure which is excluded from the limited C API. Automerge-Triggered-By: GH:encukou
* bpo-45510: Check both types when specializing subtraction (GH-29995)Brandt Bucher2021-12-091-0/+4
|
* Merge remote-tracking branch 'upstream/main'Pablo Galindo2021-12-084-0/+22
|\
| * bpo-46016: fcntl module add FreeBSD's F_DUP2FD_CLOEXEC flag support (GH-29993)David CARLIER2021-12-084-0/+22
| |
* | Post 3.11.0a3Pablo Galindo2021-12-081-1/+1
| |
* | Python 3.11.0a3v3.11.0a3Pablo Galindo2021-12-08129-596/+1798
| |
* | Fix some false positives of documentation syntax problemsPablo Galindo2021-12-083-4/+4
|/
* bpo-45711: Remove unnecessary normalization of exc_info (GH-29922)Irit Katriel2021-12-082-20/+1
|
* bpo-46015: Fixes calculation of sys.path in a venv on Windows (GH-29992)Steve Dower2021-12-086-12/+20
| | | Also ensures that pybuilddir.txt is written early enough in the build to be picked up by later steps.
* bpo-45359: Support TopologicalSorter type subscript (GH-28714)Jacob Hayes2021-12-083-0/+7
| | | | | | | | | | | | * Support TopologicalSorter type subscript * 📜🤖 Added by blurb_it. * Add TopologicalSorter to GenericAlias tests * Update Misc/NEWS.d/next/Library/2021-10-03-22-27-35.bpo-45359.LX_uxe.rst Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
* bpo-45635: refactor print_exception() into smaller functions (GH-29981)Irit Katriel2021-12-081-87/+139
| | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-45813: Drop redundant assertion from frame.clear() (GH-29990)Andrew Svetlov2021-12-082-3/+15
| | | | | * bpo-45813: Drop redundant assertion from frame.clear() * Move assertion to frame_dealloc()
* bpo-46009: Do not exhaust generator when send() method raises (GH-29986)Mark Shannon2021-12-085-21/+30
|
* doc: Add link issue 44010 (GH-29454)Rafael Fontenelle2021-12-081-1/+1
|
* bpo-45847: Don't override user overrides for CFLAGS/LIBS (GH-29967)Christian Heimes2021-12-083-67/+85
|
* Fix double-space in exception message (GH-29955)Ned Batchelder2021-12-081-1/+1
|
* bpo-40222: update doc entry with respect to the change in WITH_EXCEPT_START ↵Irit Katriel2021-12-081-1/+3
| | | | (GH-29975)
* bpo-20751: Match variable name to the example. (GH-29980)Raymond Hettinger2021-12-081-4/+8
|
* bpo-45582: Write empty pybuilddir.txt on Windows to allow relocatable build ↵Steve Dower2021-12-083-6/+6
| | | | directories (GH-29979)
* bpo-46008: Move Py*State init into distinct functions. (gh-29977)Eric Snow2021-12-084-103/+299
| | | | | Previously, basic initialization of PyInterprterState happened in PyInterpreterState_New() (along with allocation and adding the new interpreter to the runtime state). This prevented us from initializing interpreter states that were allocated separately (e.g. statically or in a free list). We've addressed that here by factoring out a separate function just for initialization. We've done the same for PyThreadState. _PyRuntimeState was sorted out when we added it since _PyRuntime is statically allocated. However, here we update the existing init code to line up with the functions for PyInterpreterState and PyThreadState. https://bugs.python.org/issue46008
* bpo-46008: Add _PyInterpreterState_Main(). (gh-29978)Eric Snow2021-12-084-9/+13
| | | | | PyInterpreterState_Main() is a plain function exposed in the public C-API. For internal usage we can take the more efficient approach in this PR. https://bugs.python.org/issue46008
* bpo-46008: Stop calling _PyThreadState_Init() in new_threadstate(). (gh-29973)Eric Snow2021-12-083-9/+17
| | | | | This simplifies new_threadstate(). We also rename _PyThreadState_Init() to _PyThreadState_SetCurrent() to reflect what it actually does. https://bugs.python.org/issue46008
* bpo-46008: Use PyMem_RawCalloc() to allocate PyThreadState. (GH-29972)Eric Snow2021-12-071-38/+2
| | | | | Doing so allows us to stop assigning various fields to `NULL` and 0. It also more closely matches the behavior of a static initializer. Automerge-Triggered-By: GH:ericsnowcurrently
* bpo-46008: Move thread-related interpreter state into a sub-struct. (gh-29971)Eric Snow2021-12-078-40/+42
| | | | | This parallels _PyRuntimeState.interpreters. Doing this helps make it more clear what part of PyInterpreterState relates to its threads. https://bugs.python.org/issue46008
* bpo-46008: Return void from _PyEval_InitState(). (gh-29970)Eric Snow2021-12-073-10/+7
| | | | | This falls into the category of keep-allocation-and-initialization separate. It also allows us to use _PyEval_InitState() safely in functions that return void. https://bugs.python.org/issue46008
* bpo-45847: Revert Port _ctypes partly to PY_STDLIB_MOD (GH-29747) (GH-29969)Christian Heimes2021-12-075-479/+38
|
* bpo-45582: Fix framework path and bootstrap build (GH-29954)Christian Heimes2021-12-072-23/+14
| | | | | | | * Check NS API return values for NULL to prevent segfault in ``_bootstrap_python``. * Set modPathInitialized to 1 so the ``decode_to_dict`` path is used. Signed-off-by: Christian Heimes <christian@python.org>
* Fix leak when an exception is raised during generator creation. (GH-29960)Mark Shannon2021-12-071-20/+7
|
* bpo-45635: standardize error handling in traceback.c (GH-29905)Irit Katriel2021-12-071-66/+104
| | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-45947: Place dict and values pointer at fixed (negative) offset just ↵Mark Shannon2021-12-0719-281/+256
| | | | | | | | | | | | | | | | | | | before GC header. (GH-29879) * Place __dict__ immediately before GC header for plain Python objects. * Fix up lazy dict creation logic to use managed dict pointers. * Manage values pointer, placing them directly before managed dict pointers. * Convert hint-based load/store attr specialization target managed dict classes. * Specialize LOAD_METHOD for managed dict objects. * Remove unsafe _PyObject_GC_Calloc function. * Remove unsafe _PyObject_GC_Malloc() function. * Add comment explaning use of Py_TPFLAGS_MANAGED_DICT.
* bpo-35821: Fix restructuredtext code formatting in logging.rst (GH-29963)Ken Jin2021-12-071-5/+5
|
* bpo-46004: Fix error location for loops with invalid targets (GH-29959)Pablo Galindo Salgado2021-12-073-1/+5
|
* Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" ↵Victor Stinner2021-12-0728-34/+3228
| | | | | (GH-29951) This reverts commit 9bf2cbc4c498812e14f20d86acb61c53928a5a57.
* bpo-35821: Add an example to Logger.propagate documentation. (GH-29841)Vinay Sajip2021-12-071-0/+9
|
* bpo-45890: Add tests for tracing try-except-finally blocks (GH-29746)Irit Katriel2021-12-072-2/+51
|
* bpo-46001: Change OverflowError to RecursionError in JSON library docstrings ↵James Gerity2021-12-073-5/+5
| | | | (GH-29943)
* bpo-45798: Let libmpdec decide which archs to build on macOS as done ↵Ned Deily2021-12-072-22/+5
| | | | previously. (GH-29949)
* bpo-28953: Use `raise from` when raising new IncompleteRead (GH-29861)1809092021-12-071-2/+2
| | | Automerge-Triggered-By: GH:asvetlov