Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-120688: Build WASI with -O3 in debug mode (#120691) | Victor Stinner | 2024-06-18 | 3 | -0/+13 |
| | | | | On WASI in debug mode, Python is now built with compiler flag -O3 instead of -Og, to support more recursive calls. | ||||
* | gh-119574: Add some missing environment variables to '--help-env'. (GH-120006) | devdanzin | 2024-06-18 | 3 | -0/+88 |
| | |||||
* | gh-120417: Add #noqa: F401 to tests (#120627) | Victor Stinner | 2024-06-18 | 24 | -41/+43 |
| | | | | Ignore linter "imported but unused" warnings in tests when the linter doesn't understand how the import is used. | ||||
* | gh-120496: Add a note about iterator thread-safe (gh-120685) | Donghee Na | 2024-06-18 | 1 | -0/+3 |
| | |||||
* | gh-117953: Skip `test_interpreters` properly without GIL (#120689) | Nice Zombies | 2024-06-18 | 1 | -3/+6 |
| | |||||
* | gh-120417: Use import_helper() in test_regrtest (#120680) | Victor Stinner | 2024-06-18 | 1 | -14/+12 |
| | |||||
* | gh-120449: fix ``test_pyclbr`` introspection for mangled names (GH-120450) | Bénédikt Tran | 2024-06-18 | 2 | -17/+75 |
| | |||||
* | gh-120600: Make Py_TYPE() opaque in limited C API 3.14 (#120601) | Victor Stinner | 2024-06-18 | 8 | -9/+40 |
| | | | | In the limited C API 3.14 and newer, Py_TYPE() is now implemented as an opaque function call to hide implementation details. | ||||
* | gh-118789: Add `PyUnstable_Object_ClearWeakRefsNoCallbacks` (#118807) | Sam Gross | 2024-06-18 | 8 | -4/+68 |
| | | | | | | | | | | | | This exposes `PyUnstable_Object_ClearWeakRefsNoCallbacks` as an unstable C-API function to provide a thread-safe mechanism for clearing weakrefs without executing callbacks. Some C-API extensions need to clear weakrefs without calling callbacks, such as after running finalizers like we do in subtype_dealloc. Previously they could use `_PyWeakref_ClearRef` on each weakref, but that's not thread-safe in the free-threaded build. Co-authored-by: Petr Viktorin <encukou@gmail.com> | ||||
* | gh-120659: Skip `test_freethreading` with GIL (#120660) | Nice Zombies | 2024-06-18 | 1 | -0/+4 |
| | |||||
* | gh-120417: Move imports to doctests in test_doctest (#120679) | Victor Stinner | 2024-06-18 | 1 | -4/+14 |
| | |||||
* | gh-119241: Add HOWTO for free-threaded C API extensions (#119877) | Sam Gross | 2024-06-18 | 2 | -0/+255 |
| | | | | | | Some sections adapted from https://github.com/Quansight-Labs/free-threaded-compatibility/ written by Nathan Goldbaum. Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com> | ||||
* | gh-120381: Fix inspect.ismethoddescriptor() (#120383) | Jan Kaliszewski | 2024-06-18 | 4 | -10/+135 |
| | | | | | | | | The `inspect.ismethoddescriptor()` function did not check for the lack of `__delete__()` and, consequently, erroneously returned True when applied to *data* descriptors with only `__get__()` and `__delete__()` defined. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com> | ||||
* | gh-120674: Protect multi-line macros in _testbuffer.c and _testcapimodule.c ↵ | Bénédikt Tran | 2024-06-18 | 2 | -60/+86 |
| | | | | | (#120675) Add do { ... } while (0) pattern. | ||||
* | gh-120662: Improve `smtplib` example (#120668) | Bénédikt Tran | 2024-06-18 | 1 | -12/+11 |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | No longer watch the queue module, remove rhettinger (#120664) | Raymond Hettinger | 2024-06-18 | 1 | -2/+1 |
| | |||||
* | GH-120507: Lower the `BEFORE_WITH` and `BEFORE_ASYNC_WITH` instructions. ↵ | Mark Shannon | 2024-06-18 | 22 | -651/+663 |
| | | | | | | | | | (#120640) * Remove BEFORE_WITH and BEFORE_ASYNC_WITH instructions. * Add LOAD_SPECIAL instruction * Reimplement `with` and `async with` statements using LOAD_SPECIAL | ||||
* | gh-119897: Add test for lambda generator invocation (#120658) | Irit Katriel | 2024-06-18 | 1 | -1/+5 |
| | | | gh-120467: Add test for lambda generator invocation | ||||
* | gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615) | Serhiy Storchaka | 2024-06-18 | 1 | -8/+32 |
| | | | | | | Mocking only works if sys.modules['pydoc'] and pydoc are the same, but some pydoc functions reload the module and change sys.modules. Ensure that sys.modules['pydoc'] is always restored after the corresponding tests. | ||||
* | gh-120560: Mark `zip64` tests in `test_zipimport` as CPU-heavy (GH-120564) | Nice Zombies | 2024-06-17 | 1 | -0/+2 |
| | |||||
* | gh-120417: Remove unused imports in cases_generator (#120622) | Victor Stinner | 2024-06-17 | 11 | -30/+7 |
| | |||||
* | gh-120524: Avoid a Race On ↵ | Eric Snow | 2024-06-17 | 2 | -3/+4 |
| | | | | | _PyRuntime.types.managed_static.types[i].interp_count (gh-120529) gh-120182 added new global state (interp_count), but didn't add thread-safety for it. This change eliminates the possible race. | ||||
* | gh-120417: Modify test_bdb to use the import (#120628) | Victor Stinner | 2024-06-17 | 1 | -1/+2 |
| | | | Run test_module_for_bdb with a specific namespace. | ||||
* | gh-120417: Remove unused imports in tests (part 1) (#120629) | Victor Stinner | 2024-06-17 | 10 | -13/+3 |
| | |||||
* | gh-120417: Remove unused imports in tests (part 2) (#120630) | Victor Stinner | 2024-06-17 | 10 | -15/+5 |
| | |||||
* | gh-120417: Remove unused imports in tests (part 3) (#120631) | Victor Stinner | 2024-06-17 | 10 | -14/+4 |
| | |||||
* | gh-117657: Fix `__slots__` thread safety in free-threaded build (#119368) | Daniele Parmeggiani | 2024-06-17 | 4 | -12/+77 |
| | | | | Fix a race in `PyMember_GetOne` and `PyMember_SetOne` for `Py_T_OBJECT_EX`. These functions implement `__slots__` accesses for Python objects. | ||||
* | gh-117657: Fix TSan reported data race on ioctl_works (#120175) | Sam Gross | 2024-06-17 | 2 | -4/+5 |
| | |||||
* | gh-120417: Remove unused imports in Tools (#120623) | Victor Stinner | 2024-06-17 | 4 | -6/+3 |
| | |||||
* | gh-120507: Double WASI memory (#120648) | Victor Stinner | 2024-06-17 | 4 | -9/+8 |
| | | | | Use 16 MiB stack with 40 MiB memory limit, instead of 8 MiB stack with 20 MiB memory limit. | ||||
* | fix enum doc typo (#120091) | Saul Pwanson | 2024-06-17 | 1 | -1/+1 |
| | |||||
* | gh-115649: Copy the filename into main interpreter before intern in import.c ↵ | AN Long | 2024-06-17 | 2 | -1/+13 |
| | | | | | (#120315) Co-authored-by: Kumar Aditya <kumaraditya@python.org> | ||||
* | gh-120433: Mention ``chocolatey`` for installing llvm on Windows as an ↵ | Kirill Podoprigora | 2024-06-17 | 1 | -0/+6 |
| | | | | alternative option (#120434) | ||||
* | gh-120417: Remove unused imports in tests (part 4) (#120632) | Victor Stinner | 2024-06-17 | 7 | -10/+1 |
| | |||||
* | gh-119182: Add PyUnicodeWriter C API (#119184) | Victor Stinner | 2024-06-17 | 6 | -18/+533 |
| | |||||
* | gh-114091: Reword error message for unawaitable types (#114090) | Steele Farnsworth | 2024-06-17 | 5 | -9/+10 |
| | | | | | Reword error message for unawaitable types. | ||||
* | Update the documentation howto index page and group docs into 3 logical ↵ | Carol Willing | 2024-06-17 | 4 | -5/+38 |
| | | | | | | sections (GH-119366) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> | ||||
* | gh-119933: Improve ``SyntaxError`` message for invalid type parameters ↵ | Bénédikt Tran | 2024-06-17 | 9 | -55/+277 |
| | | | | | expressions (#119976) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | GH-120619: Clean up `RETURN_VALUE` instruction (GH-120624) | Mark Shannon | 2024-06-17 | 11 | -61/+67 |
| | | | | | * Rename _POP_FRAME to _RETURN_VALUE as it returns a value as well as popping a frame. * Remove remaining _POP_FRAMEs | ||||
* | itertools doc: examples for groupby() and tee() (#120618) | Frank Dana | 2024-06-17 | 1 | -2/+2 |
| | |||||
* | gh-120196: Reuse find_max_char() for bytes objects (#120497) | Ruben Vorderman | 2024-06-17 | 2 | -55/+25 |
| | |||||
* | gh-120367: fix removal of redundant NOPs and jumps after reordering hot-cold ↵ | Irit Katriel | 2024-06-17 | 3 | -12/+47 |
| | | | | blocks (#120425) | ||||
* | gh-83754: Use the Py_TYPE() macro (#120599) | Victor Stinner | 2024-06-17 | 6 | -12/+12 |
| | | | | Don't access directly PyObject.ob_type, but use the Py_TYPE() macro instead. | ||||
* | gh-120586: Fix several "unused function" warnings in `posixmodule.c` (#120588) | Nikita Sobolev | 2024-06-17 | 1 | -1/+3 |
| | |||||
* | gh-112346: Document the OS byte in `gzip.compress` output change in 3.11 ↵ | Gregory P. Smith | 2024-06-17 | 2 | -1/+18 |
| | | | | | (#120480) gh-112346: Describe the "os" byte in gzip output change. | ||||
* | gh-120567: Clarify weekday return in calendar.monthrange docstring (#120570) | Terry Jan Reedy | 2024-06-16 | 1 | -2/+2 |
| | | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | ||||
* | gh-118596: Add thread-safety clarifications to the SSLContext documentation ↵ | mm-matthias | 2024-06-16 | 1 | -0/+13 |
| | | | | | | | | (#118597) Add thread-safety clarifications to the SSLContext documentation. Per the issue: This issue has also come up [here](https://github.com/psf/requests/pull/6667) where the matter was clarified by @tiran in [this comment](https://github.com/psf/requests/pull/6667): > `SSLContext` is designed to be shared and used for multiple connections. It is thread safe as long as you don't reconfigure it once it is used by a connection. Adding new certs to the internal trust store is fine, but changing ciphers, verification settings, or mTLS certs can lead to surprising behavior. The problem is unrelated to threads and can even occur in a single-threaded program. | ||||
* | gh-120568: fix file leak in PyUnstable_CopyPerfMapFile (#120569) | Carson Radtke | 2024-06-16 | 1 | -4/+4 |
| | |||||
* | gh-120584: Fix "unused thread_critical_sections" warning in ↵ | Nikita Sobolev | 2024-06-16 | 1 | -1/+1 |
| | | | | `test_critical_sections` (#120585) | ||||
* | Docs: remove temporary hardcoded links (#120348) | Hugo van Kemenade | 2024-06-16 | 1 | -34/+1 |
| |