summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* GH-88116: Use a compact format to represent end line and column offsets. ↵Mark Shannon2022-04-2120-533/+853
| | | | | | | | | | | | (GH-91666) * Stores all location info in linetable to conform to PEP 626. * Remove column table from code objects. * Remove end-line table from code objects. * Document new location table format
* gh-89653: PEP 670: Convert tuple macros to functions (#91786)Victor Stinner2022-04-212-11/+29
| | | | | | | | | | | | | | Convert macros to static inline functions: * PyTuple_GET_SIZE() * PyTuple_SET_ITEM() * PyList_GET_SIZE() * PyList_SET_ITEM() Add a macro converting arguments to PyTupleObject*, PyListObject* or PyObject* to prevent emitting new compiler warnings. According to PEP 670, PyTuple_GET_ITEM() and PyList_GET_ITEM() are left as macros.
* gh-91782: Define static_assert() macro on FreeBSD (#91787)Victor Stinner2022-04-211-0/+9
| | | | | On FreeBSD, if the static_assert() macro is not defined, define it in Python until <sys/cdefs.h> supports C11: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255290
* gh-89653: PEP 670: Convert PyWeakref_GET_OBJECT() to function (#91785)Victor Stinner2022-04-211-10/+16
| | | | | | Convert the PyWeakref_GET_OBJECT() macro to a static inline function. Add an assertion to check the argument with PyWeakref_Check(). Add a macro converting the argument to PyObject* to prevent emitting new compiler warning.
* gh-91636: Don't clear required fields of function objects (GH-91651)Dennis Sweeney2022-04-213-3/+79
|
* bpo-42066: CookieJar cookies should not be sorted (GH-22745)Iman Kermani2022-04-213-12/+9
|
* gh-90623: signal.raise_signal() calls PyErr_CheckSignals() (#91756)Victor Stinner2022-04-213-1/+19
| | | | signal.raise_signal() and os.kill() now call PyErr_CheckSignals() to check immediately for pending signals.
* Revert "gh-85567: Register a cleanup function to close files for FileType ↵Victor Stinner2022-04-213-11/+3
| | | | | objects in argparse (#32257)" (#91771) This reverts commit 328dbc051f84bd5fdf61101bb4fa61d85f8b7feb.
* gh-89653: PEP 670: Convert unicodeobject.h macros to functions (#91705)Victor Stinner2022-04-211-41/+61
| | | | | | | | | | | | | | | | | | Convert unicodeobject.h macros to static inline functions: * PyUnicode_CHECK_INTERNED() * PyUnicode_DATA(), _PyUnicode_COMPACT_DATA(), _PyUnicode_NONCOMPACT_DATA() * PyUnicode_GET_LENGTH() * PyUnicode_IS_ASCII() * PyUnicode_IS_COMPACT() * PyUnicode_IS_COMPACT_ASCII() * PyUnicode_IS_READY() Reorder functions to declare functions before their first usage. Static inline functions are wrapped by macros which casts arguments with _PyObject_CAST() to prevent introducing new compiler warnings when passing "const PyObject*".
* Minor improvements to grammar and markup. (GH-91762)Raymond Hettinger2022-04-201-12/+12
|
* Fix typo in GH Issue template (GH-91759)Mariatta Wijaya2022-04-201-2/+2
| | | Typo in the word enhancement.
* gh-91731: Replace Py_BUILD_ASSERT() with static_assert() (#91730)Victor Stinner2022-04-2010-38/+68
| | | | | | | | | | | | Python 3.11 now uses C11 standard which adds static_assert() to <assert.h>. * In pytime.c, replace Py_BUILD_ASSERT() with preprocessor checks on SIZEOF_TIME_T with #error. * On macOS, py_mach_timebase_info() now accepts timebase members with the same size than _PyTime_t. * py_get_monotonic_clock() now saturates GetTickCount64() to _PyTime_MAX: GetTickCount64() is unsigned, whereas _PyTime_t is signed.
* bpo-23747: Enhance platform doc, document default behavior (GH-31462)slateny2022-04-201-6/+8
|
* Cast to (destructor) to fix compiler warnings (GH-91711)Dennis Sweeney2022-04-202-12/+12
|
* build(deps): bump actions/upload-artifact from 2.3.1 to 3 (#32227)dependabot[bot]2022-04-201-1/+1
| | | | | | | | | | | | | | | | | Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2.3.1 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2.3.1...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* build(deps): bump actions/cache from 2.1.7 to 3.0.1 (#32228)dependabot[bot]2022-04-201-3/+3
| | | | | | | | | | | | | | | | | | Bumps [actions/cache](https://github.com/actions/cache) from 2.1.7 to 3.0.1. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v2.1.7...v3.0.1) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-91632: Fix generic_alias_iterator to be finalized at exit. (GH-91727)Dong-hee Na2022-04-203-2/+7
|
* gh-89770: [PEP-678] add exception notes to tutorial (GH-30441)Irit Katriel2022-04-202-0/+72
|
* gh-91731: Build Python with -std=c11 (#91733)Victor Stinner2022-04-203-2/+4
| | | | Python is now built with "-std=c11" compiler option, rather than "-std=c99".
* gh-91734: Fix ossaudio support on Solaris (GH-91735)Jakub Kulík2022-04-202-0/+5
|
* bpo-30718: Add information about text buffering (GH-32351)slateny2022-04-201-1/+5
|
* Clean-up the argparse docs quick links table (GH-91726)Raymond Hettinger2022-04-201-55/+33
|
* gh-91020: Add `PyBytes_Type.tp_alloc` for subclass (GH-91686)Inada Naoki2022-04-202-1/+22
|
* Add link to sys.path in os lib (#91679)slateny2022-04-201-2/+2
|
* build(deps): bump actions/checkout from 2 to 3 (#32226)dependabot[bot]2022-04-203-12/+12
| | | | | | | | | | | | | | | | | Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix awkward sentence in signal docs (#91508)AJ Jordan2022-04-201-4/+5
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-46075: Store localhost cookies in CookieJar (#30108)Nick2022-04-193-2/+46
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* build(deps): bump actions/setup-python from 2 to 3 (#31630)dependabot[bot]2022-04-191-1/+1
| | | | | | | | | | | | | | | | | Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-90667: Add specializations of Py_DECREF when types are known (GH-30872)Dennis Sweeney2022-04-1913-84/+146
|
* bpo-46712: share more global strings in deepfreeze (gh-32152)Kumar Aditya2022-04-196-15/+15
| | | (for gh-90868)
* gh-74166: make all_errors keyword-only (GH-91704)Irit Katriel2022-04-192-2/+2
|
* bpo-40859: Update Windows build to use xz-5.2.5 (GH-20622)Ma Lin2022-04-195-5/+6
|
* gh-91616: re module, fix .fullmatch() mismatch when using Atomic Grouping or ↵Ma Lin2022-04-194-8/+37
| | | | | | | | | Possessive Quantifiers (GH-91681) These jumps should use DO_JUMP0() instead of DO_JUMP(): - JUMP_POSS_REPEAT_1 - JUMP_POSS_REPEAT_2 - JUMP_ATOMIC_GROUP
* gh-91231: Add shutdown_timeout to multiprocessing BaseManager (#32112)Victor Stinner2022-04-194-20/+49
| | | | | | | | Add an optional keyword 'shutdown_timeout' parameter to the multiprocessing.BaseManager constructor. Kill the process if terminate() takes longer than the timeout. Multiprocessing tests pass test.support.SHORT_TIMEOUT to BaseManager.shutdown_timeout.
* Add more tests for group names and refs in RE (GH-91695)Serhiy Storchaka2022-04-191-15/+41
|
* gh-90699: Use module state to access insert str object. (GH-91693)Dong-hee Na2022-04-191-3/+49
|
* Doc: Fix link formatting typo (GH-91659)slateny2022-04-191-1/+1
|
* gh-74166: break cycle by clearing the list instead of dropping its reference ↵Irit Katriel2022-04-191-1/+1
| | | | (GH-91685)
* gh-90997: bpo-46841: Disassembly of quickened code (GH-32099)penguin_wwy2022-04-194-39/+206
|
* bpo-40421: Cleanup PyFrame C API (GH-32417)Victor Stinner2022-04-193-18/+4
|
* gh-91098: Use Argument Clinic for Object/classobject.c to fix docstrings ↵Oleg Iarygin2022-04-194-115/+173
| | | | | | | (#31711) Closes GH-91098. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-46014: Add docs regarding `functools.singledispatch` changes in 3.11 ↵Yurii Karabas2022-04-192-0/+51
| | | | | (#32282) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-91526: io: Remove device encoding support from TextIOWrapper (GH-91529)Inada Naoki2022-04-194-70/+9
| | | | `TextIOWrapper.__init__()` called `os.device_encoding(file.fileno())` if fileno is 0-2 and encoding=None. But it is very rarely works, and never documented behavior.
* gh-74166: Add option to get all errors from socket.create_connection (GH-91586)Irit Katriel2022-04-185-10/+48
|
* gh-91670: Removes `SO` config variable in `sysconfig.py` (#91671)Bryan Weber2022-04-184-42/+1
| | | | | | | | | | | | | | | * Removes SO config variable in sysconfig Per @warsaw in https://github.com/python/cpython/issues/63754, this was deprecated in Python 3.4 and was suggested for removal in Python 3.5. * Add NEWS * Update Misc/NEWS.d/next/Library/2022-04-18-15-23-24.gh-issue-91670.6eyChw.rst Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Barry Warsaw <barry@python.org> Co-authored-by: Éric <merwok@netwok.org>
* gh-91102: Use Argument Clinic for EncodingMap (#31725)Oleg Iarygin2022-04-183-48/+43
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* Add some information about where pynche has moved to (#91650)Barry Warsaw2022-04-182-1/+3
|
* gh-91576: Speed up iteration of strings (#91574)Kumar Aditya2022-04-185-6/+79
|
* bpo-47256: Increasing the depth of backtracking in RE (GH-32411)Ma Lin2022-04-183-44/+46
| | | | | | | | | | Limit the maximum capturing group to 2**30-1 on 64-bit platforms (it was 2**31-1). No change on 32-bit platforms (2**28-1). It allows to reduce the size of SRE(match_context): - On 32 bit platform: 36 bytes, no change. (msvc2022) - On 64 bit platform: 72 bytes -> 56 bytes. (msvc2022/gcc9.4) which leads to increasing the depth of backtracking.
* gh-91575: Update case-insensitive matching in re to the latest Unicode ↵Serhiy Storchaka2022-04-183-9/+78
| | | | version (GH-91580)