Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Move error test to the function that needs it. Improve error message. ↵ | Raymond Hettinger | 2021-12-10 | 2 | -11/+4 | |
| | | | | (GH-30008) | |||||
* | bpo-43931: Export Python version as API data (GH-25577) | Gabriele N. Tornetta | 2021-12-10 | 12 | -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 Stinner | 2021-12-09 | 1 | -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 Snow | 2021-12-09 | 38 | -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 Storchaka | 2021-12-09 | 1 | -2/+0 | |
| | ||||||
* | bpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997) | Steve Dower | 2021-12-09 | 2 | -2/+7 | |
| | ||||||
* | bpo-45654: Freeze the runpy module and stuff it imports (GH-29903) | Kumar Aditya | 2021-12-09 | 7 | -0/+101 | |
| | ||||||
* | bpo-45635: continue refactor of print_exception() to standardize error ↵ | Irit Katriel | 2021-12-09 | 1 | -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 Aditya | 2021-12-09 | 2 | -2/+2 | |
| | ||||||
* | bpo-46025: Fix a crash in the atexit module for auto-unregistering functions ↵ | Pablo Galindo Salgado | 2021-12-09 | 3 | -1/+21 | |
| | | | | (GH-30002) | |||||
* | bpo-25066: Added repr for multiprocessing.Event (GH-29749) | Kumar Aditya | 2021-12-09 | 3 | -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ábor | 2021-12-09 | 1 | -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 Stinner | 2021-12-09 | 4 | -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 Bucher | 2021-12-09 | 1 | -0/+4 | |
| | ||||||
* | Merge remote-tracking branch 'upstream/main' | Pablo Galindo | 2021-12-08 | 4 | -0/+22 | |
|\ | ||||||
| * | bpo-46016: fcntl module add FreeBSD's F_DUP2FD_CLOEXEC flag support (GH-29993) | David CARLIER | 2021-12-08 | 4 | -0/+22 | |
| | | ||||||
* | | Post 3.11.0a3 | Pablo Galindo | 2021-12-08 | 1 | -1/+1 | |
| | | ||||||
* | | Python 3.11.0a3v3.11.0a3 | Pablo Galindo | 2021-12-08 | 129 | -596/+1798 | |
| | | ||||||
* | | Fix some false positives of documentation syntax problems | Pablo Galindo | 2021-12-08 | 3 | -4/+4 | |
|/ | ||||||
* | bpo-45711: Remove unnecessary normalization of exc_info (GH-29922) | Irit Katriel | 2021-12-08 | 2 | -20/+1 | |
| | ||||||
* | bpo-46015: Fixes calculation of sys.path in a venv on Windows (GH-29992) | Steve Dower | 2021-12-08 | 6 | -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 Hayes | 2021-12-08 | 3 | -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 Katriel | 2021-12-08 | 1 | -87/+139 | |
| | | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> | |||||
* | bpo-45813: Drop redundant assertion from frame.clear() (GH-29990) | Andrew Svetlov | 2021-12-08 | 2 | -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 Shannon | 2021-12-08 | 5 | -21/+30 | |
| | ||||||
* | doc: Add link issue 44010 (GH-29454) | Rafael Fontenelle | 2021-12-08 | 1 | -1/+1 | |
| | ||||||
* | bpo-45847: Don't override user overrides for CFLAGS/LIBS (GH-29967) | Christian Heimes | 2021-12-08 | 3 | -67/+85 | |
| | ||||||
* | Fix double-space in exception message (GH-29955) | Ned Batchelder | 2021-12-08 | 1 | -1/+1 | |
| | ||||||
* | bpo-40222: update doc entry with respect to the change in WITH_EXCEPT_START ↵ | Irit Katriel | 2021-12-08 | 1 | -1/+3 | |
| | | | | (GH-29975) | |||||
* | bpo-20751: Match variable name to the example. (GH-29980) | Raymond Hettinger | 2021-12-08 | 1 | -4/+8 | |
| | ||||||
* | bpo-45582: Write empty pybuilddir.txt on Windows to allow relocatable build ↵ | Steve Dower | 2021-12-08 | 3 | -6/+6 | |
| | | | | directories (GH-29979) | |||||
* | bpo-46008: Move Py*State init into distinct functions. (gh-29977) | Eric Snow | 2021-12-08 | 4 | -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 Snow | 2021-12-08 | 4 | -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 Snow | 2021-12-08 | 3 | -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 Snow | 2021-12-07 | 1 | -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 Snow | 2021-12-07 | 8 | -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 Snow | 2021-12-07 | 3 | -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 Heimes | 2021-12-07 | 5 | -479/+38 | |
| | ||||||
* | bpo-45582: Fix framework path and bootstrap build (GH-29954) | Christian Heimes | 2021-12-07 | 2 | -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 Shannon | 2021-12-07 | 1 | -20/+7 | |
| | ||||||
* | bpo-45635: standardize error handling in traceback.c (GH-29905) | Irit Katriel | 2021-12-07 | 1 | -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 Shannon | 2021-12-07 | 19 | -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 Jin | 2021-12-07 | 1 | -5/+5 | |
| | ||||||
* | bpo-46004: Fix error location for loops with invalid targets (GH-29959) | Pablo Galindo Salgado | 2021-12-07 | 3 | -1/+5 | |
| | ||||||
* | Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" ↵ | Victor Stinner | 2021-12-07 | 28 | -34/+3228 | |
| | | | | | (GH-29951) This reverts commit 9bf2cbc4c498812e14f20d86acb61c53928a5a57. | |||||
* | bpo-35821: Add an example to Logger.propagate documentation. (GH-29841) | Vinay Sajip | 2021-12-07 | 1 | -0/+9 | |
| | ||||||
* | bpo-45890: Add tests for tracing try-except-finally blocks (GH-29746) | Irit Katriel | 2021-12-07 | 2 | -2/+51 | |
| | ||||||
* | bpo-46001: Change OverflowError to RecursionError in JSON library docstrings ↵ | James Gerity | 2021-12-07 | 3 | -5/+5 | |
| | | | | (GH-29943) | |||||
* | bpo-45798: Let libmpdec decide which archs to build on macOS as done ↵ | Ned Deily | 2021-12-07 | 2 | -22/+5 | |
| | | | | previously. (GH-29949) | |||||
* | bpo-28953: Use `raise from` when raising new IncompleteRead (GH-29861) | 180909 | 2021-12-07 | 1 | -2/+2 | |
| | | | Automerge-Triggered-By: GH:asvetlov |