Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix the PyGetSetDef documentation (GH-116056) | Serhiy Storchaka | 2024-03-05 | 1 | -3/+3 |
| | | | closure is not a function pointer, it is a user data pointer. | ||||
* | gh-115777: Fix double versionadded directives (GH-116269) | Serhiy Storchaka | 2024-03-05 | 6 | -24/+8 |
| | |||||
* | GH-115685: Split `_TO_BOOL_ALWAYS_TRUE` into micro-ops (GH-116352) | Mark Shannon | 2024-03-05 | 8 | -44/+50 |
| | |||||
* | GH-115819: Eliminate Boolean guards when value is known (GH-116355) | Mark Shannon | 2024-03-05 | 6 | -2/+102 |
| | |||||
* | gh-116326: Handler errors correctly in `getwindowsversion` in `sysmodule` ↵ | Nikita Sobolev | 2024-03-05 | 1 | -20/+32 |
| | | | | (#116339) | ||||
* | GH-115685: Optimize `TO_BOOL` and variants based on truthiness of input. ↵ | Mark Shannon | 2024-03-05 | 5 | -55/+150 |
| | | | | (GH-116311) | ||||
* | gh-116325: Raise `SyntaxError` rather than `IndexError` on ForwardRef with ↵ | Nikita Sobolev | 2024-03-05 | 3 | -1/+9 |
| | | | | empty string arg (#116341) | ||||
* | gh-112075: Enable freeing with qsbr and fallback to lock on key changed ↵ | Dino Viehland | 2024-03-05 | 1 | -6/+3 |
| | | | | (GH-116336) | ||||
* | GH-116313: get WASI builds to run under wasmtime 18 w/ WASI 0.2/preview2 ↵ | Brett Cannon | 2024-03-05 | 6 | -7/+12 |
| | | | | | | | | | primitives (#116327) * GH-116313: get WASI builds to run under wasmtime 18 w/ WASI 0.2/preview2 primitives * Add the configure changes * Update `wasm_build.py` | ||||
* | gh-112087: Make list_{slice, ass_slice, subscript} to be threadsafe (gh-116233) | Donghee Na | 2024-03-05 | 2 | -50/+87 |
| | |||||
* | gh-116029: Fix unused function warning on macOS (#116340) | Sam Gross | 2024-03-05 | 1 | -2/+2 |
| | |||||
* | gh-116265: Remove obsolete sentence. (#116284) | Terry Jan Reedy | 2024-03-04 | 1 | -4/+2 |
| | | | | | Remove sentence in Tools/c-analyzer/README referring to deleted ignore-globals.txt. | ||||
* | gh-115490: Make the interpreter.channels and interpreter.queues Modules ↵ | Eric Snow | 2024-03-04 | 6 | -19/+60 |
| | | | | | Handle Reloading Properly (gh-115493) The problem manifested when the .py module got reloaded and the corresponding extension module didn't. The .py module registers types with the extension and the extension was not allowing that to happen more than once. The solution: let it happen more than once. | ||||
* | gh-115320: Refactor `get_hash_info` in `sysmodule.c` not to swallow errors ↵ | Nikita Sobolev | 2024-03-04 | 1 | -23/+25 |
| | | | | (#115321) | ||||
* | gh-76785: Simplify Channels XID Types (gh-116318) | Eric Snow | 2024-03-04 | 1 | -78/+49 |
| | | | I had added an extra cleanup abstraction a while back that has turned out to be unnecessary. | ||||
* | GH-116134: JIT aarch64-pc-windows-msvc (GH-116130) | Brandt Bucher | 2024-03-04 | 4 | -3/+42 |
| | |||||
* | GH-115802: Don't JIT zero-length jumps (GH-116177) | Brandt Bucher | 2024-03-04 | 1 | -17/+68 |
| | |||||
* | gh-116316: Fix typo in `UNARY_FUNC(PyNumber_Positive)` macros (GH-116317) | Kirill Podoprigora | 2024-03-04 | 1 | -1/+1 |
| | |||||
* | gh-57141: Add dircmp shallow option (GH-109499) | Tobias Rautenkranz | 2024-03-04 | 4 | -31/+120 |
| | | | | | Co-authored-by: Steve Ward <planet36@gmail.com> Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com> | ||||
* | gh-108562: Revert enabling -fstrict-overflow for libmpdec (GH-116302) | Sergey B Kirpichev | 2024-03-04 | 3 | -13/+1 |
| | | | | | gh-108562: partial reversion of pr114751 Reverts -fstrict-overflow for libmpdec | ||||
* | gh-116116: Backport blake2 change to fix building with clang-cl on ↵ | Yuriy Chernyshov | 2024-03-04 | 4 | -6/+8 |
| | | | | windows-i686 (GH-116117) | ||||
* | gh-115832: Fix instrumentation version mismatch during interpreter shutdown ↵ | Brett Simmers | 2024-03-04 | 4 | -2/+53 |
| | | | | | | | | | | | | | (#115856) A previous commit introduced a bug to `interpreter_clear()`: it set `interp->ceval.instrumentation_version` to 0, without making the corresponding change to `tstate->eval_breaker` (which holds a thread-local copy of the version). After this happens, Python code can still run due to object finalizers during a GC, and the version check in bytecodes.c will see a different result than the one in instrumentation.c causing an infinite loop. The fix itself is straightforward: clear `tstate->eval_breaker` when clearing `interp->ceval.instrumentation_version`. | ||||
* | Consistently spell out *predicate* instead of *pred*. (gh-116308) | Raymond Hettinger | 2024-03-04 | 2 | -26/+19 |
| | |||||
* | gh-115256: Remove refcycles from tarfile writing (GH-115257) | pan324 | 2024-03-04 | 3 | -2/+28 |
| | |||||
* | gh-114258: Argument Clinic: refactor getset implementation (#116170) | Erlend E. Aasland | 2024-03-04 | 3 | -35/+18 |
| | | | | | | * Move param guard to param state machine * Override return converter during parsing * Don't use a custom type slot return converter; instead special case type slot functions during generation. | ||||
* | GH-116271 Docs: provide clarification for object assignments in the Tutorial ↵ | Kerim Kabirov | 2024-03-04 | 1 | -7/+24 |
| | | | | | | | section (#116283) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | ||||
* | gh-115398: Increment PyExpat_CAPI_MAGIC for SetReparseDeferralEnabled ↵ | Gregory P. Smith | 2024-03-04 | 2 | -6/+6 |
| | | | | | | | | | | addition (GH-116301) * Increment PyExpat_CAPI_MAGIC due to SetReparseDeferralEnabled addition. This is a followup to git commit 6a95676bb526261434dd068d6c49927c44d24a9b from Github PR #115623. * RESTify news API list. | ||||
* | gh-116296: Fix refleak in reduce_newobj() corner case (#116297) | Erlend E. Aasland | 2024-03-04 | 2 | -0/+2 |
| | | | Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com> | ||||
* | pathlib ABCs: follow all symlinks in `PathBase.glob()` (#116293) | Barney Gale | 2024-03-04 | 2 | -39/+34 |
| | | | | | | | Switch the default value of *follow_symlinks* from `None` to `True` in `pathlib._abc.PathBase.glob()` and `rglob()`. This speeds up recursive globbing. No change to the public pathlib classes. | ||||
* | gh-116010: Remove link to deprecated PEP 6 in FAQ guide (#116246) | Iman Tabrizian | 2024-03-03 | 1 | -3/+5 |
| | | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | ||||
* | gh-116281: Remove wrong '\' from '\*' in some doc signatures (#116282) | HarryLHW | 2024-03-03 | 3 | -6/+6 |
| | |||||
* | Docs: update using/configure.rst (#116274) | Hugo van Kemenade | 2024-03-03 | 1 | -23/+31 |
| | |||||
* | gh-115809: Improve TimedRotatingFileHandler.getFilesToDelete() (GH-115812) | Serhiy Storchaka | 2024-03-03 | 3 | -36/+56 |
| | | | | | | | Improve algorithm for computing which rolled-over log files to delete in logging.TimedRotatingFileHandler. It is now reliable for handlers without namer and with arbitrary deterministic namer that leaves the datetime part in the file name unmodified. | ||||
* | gh-108562: Fix compiler warnings for libmpdec (#114751) | Sergey B Kirpichev | 2024-03-03 | 5 | -3/+16 |
| | | | | | | If awailable, enable -fstrict-overflow for libmpdec. Also shut off false positive warnings (-Warray-bounds). The later was backported from mpdecimal-4.0.0. | ||||
* | gh-72971: Clarify the special no-TypeError behavior for equality (#110729) | Gouvernathor | 2024-03-03 | 1 | -1/+4 |
| | |||||
* | gh-115103: Update gc.collect to process delayed objects (gh-116251) | Donghee Na | 2024-03-02 | 0 | -0/+0 |
| | | | | | | | * Revert "gh-115103: Update refleak checker to trigger _PyMem_ProcessDelayed (gh-116238)" This reverts commit 2e91578a76d38fa8895fce95e2661618c3de892c. * gh-115103: Update gc.collect to process delayed objects | ||||
* | gh-115103: Update refleak checker to trigger _PyMem_ProcessDelayed (gh-116238) | Donghee Na | 2024-03-02 | 1 | -0/+18 |
| | |||||
* | gh-85644: webbrowser: Use $XDG_CURRENT_DESKTOP to check desktop (GH-21731) | Marco Trevisan | 2024-03-02 | 2 | -3/+11 |
| | | | | | | | | Usage of $GNOME_DESKTOP_SESSION_ID env variable is deprecated since GNOME 3.30.0 [1], so should not be used, while the standard XDG_CURRENT_DESKTOP should be instead preferred. [1] https://gitlab.gnome.org/GNOME/gnome-session/-/commit/00e0e6226371d53f65 | ||||
* | GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228) | Brett Cannon | 2024-03-02 | 2 | -0/+13 |
| | | | Wasmtime doesn't implement these functions in a way to pass test_posix (https://github.com/bytecodealliance/wasmtime/issues/7830). | ||||
* | gh-116102: Silence a Compiler Warning in _xxinterpqueues (gh-116230) | Eric Snow | 2024-03-02 | 1 | -1/+1 |
| | |||||
* | gh-112087: Use QSBR technique for list_new/clear for free-thread build ↵ | Donghee Na | 2024-03-01 | 1 | -6/+29 |
| | | | | (gh-115875) | ||||
* | GH-116226: include `pthread_stubs.h` in `pycore_pythreads.h` (#116227) | Brett Cannon | 2024-03-01 | 1 | -1/+2 |
| | |||||
* | gh-114271: Make `_thread.ThreadHandle` thread-safe in free-threaded builds ↵ | mpage | 2024-03-01 | 5 | -101/+225 |
| | | | | | | | | | | | | | | | | | (GH-115190) Make `_thread.ThreadHandle` thread-safe in free-threaded builds We protect the mutable state of `ThreadHandle` using a `_PyOnceFlag`. Concurrent operations (i.e. `join` or `detach`) on `ThreadHandle` block until it is their turn to execute or an earlier operation succeeds. Once an operation has been applied successfully all future operations complete immediately. The `join()` method is now idempotent. It may be called multiple times but the underlying OS thread will only be joined once. After `join()` succeeds, any future calls to `join()` will succeed immediately. The internal thread handle `detach()` method has been removed. | ||||
* | gh-115941: fixes in dictobject.c doc block(#116196) | Humbulani | 2024-03-01 | 1 | -1/+2 |
| | |||||
* | gh-115480: Type propagate _BINARY_OP_ADD_UNICODE (GH-115710) | Ken Jin | 2024-03-01 | 3 | -8/+66 |
| | |||||
* | gh-84995: Run sys.__interactivehook__() on asyncio REPL startup (#20517) | Rémi Lapeyre | 2024-03-01 | 3 | -39/+62 |
| | | | | | | | | | | This makes the asyncio REPL (`python -m asyncio`) more usable and similar to the regular REPL. This exposes register_readline() as a top-level function in site.py, but it's intentionally undocumented. Co-authored-by: Carol Willing <carolcode@willingconsulting.com> Co-authored-by: Itamar Oren <itamarost@gmail.com> | ||||
* | gh-115773: Add missing preprocessor guard in _testexternalinspection (#116212) | Malcolm Smith | 2024-03-01 | 1 | -1/+1 |
| | | | Add missing preprocessor guard in _testexternalinspection | ||||
* | gh-116171: Argument Clinic: disallow overriding return converter for ↵ | Erlend E. Aasland | 2024-03-01 | 3 | -41/+10 |
| | | | | __init__ methods (#116172) | ||||
* | gh-115806: Don't mangle output of configure 'ipv6 stack type' check (#116165) | Erlend E. Aasland | 2024-03-01 | 2 | -3/+3 |
| | |||||
* | gh-104711: Add security warning to the CGIHTTPRequestHandler document ↵ | AN Long | 2024-03-01 | 1 | -0/+6 |
| | | | | (GH-115915) |