summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* gh-110850: Add PyTime_TimeRaw() function (#118394)Victor Stinner2024-05-011-0/+7
| | | | | | | | | | | | | | | | | Add "Raw" variant of PyTime functions: * PyTime_MonotonicRaw() * PyTime_PerfCounterRaw() * PyTime_TimeRaw() Changes: * Add documentation and tests. Tests release the GIL while calling raw clock functions. * py_get_system_clock() and py_get_monotonic_clock() now check that the GIL is hold by the caller if raise_exc is non-zero. * Reimplement "Unchecked" functions with raw clock functions. Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-116622: Android sysconfig updates (#118352)Malcolm Smith2024-05-011-0/+2
|
* gh-99730: urllib.request: Keep HEAD method on redirect (GH-99731)Harmen Stoppels2024-05-011-0/+1
|
* gh-117958: Expose JIT code via method in UOpExecutor (#117959)Anthony Shaw2024-05-011-0/+2
|
* gh-99180: Remove traceback anchors in return and assign statements that ↵Pablo Galindo Salgado2024-05-011-0/+2
| | | | cover all the displayed range (#112670)
* gh-116767: fix crash on 'async with' with many context managers (GH-118348)Irit Katriel2024-05-011-0/+1
| | | | | | | Account for `add_stopiteration_handler` pushing a block for `async with`. To allow generator functions that previously almost hit the `CO_MAXBLOCKS` limit by nesting non-async blocks, the limit is increased by 1. This increase allows one more block in non-generator functions.
* GH-117881: fix athrow().throw()/asend().throw() concurrent access (GH-117882)Thomas Grainger2024-05-011-0/+1
|
* gh-116622: Add Android testbed (GH-117878)Malcolm Smith2024-05-011-0/+1
| | | | | | | Add code and config for a minimal Android app, and instructions to build and run it. Improve Android build instructions in general. Add a tool subcommand to download the Gradle wrapper (with its binary blob). Android studio must be downloaded manually (due to the license).
* gh-118335: Configure Tier 2 interpreter at build time (#118339)Guido van Rossum2024-05-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | The code for Tier 2 is now only compiled when configured with `--enable-experimental-jit[=yes|interpreter]`. We drop support for `PYTHON_UOPS` and -`Xuops`, but you can disable the interpreter or JIT at runtime by setting `PYTHON_JIT=0`. You can also build it without enabling it by default using `--enable-experimental-jit=yes-off`; enable with `PYTHON_JIT=1`. On Windows, the `build.bat` script supports `--experimental-jit`, `--experimental-jit-off`, `--experimental-interpreter`. In the C code, `_Py_JIT` is defined as before when the JIT is enabled; the new variable `_Py_TIER2` is defined when the JIT *or* the interpreter is enabled. It is actually a bitmask: 1: JIT; 2: default-off; 4: interpreter.
* gh-118124: Use static_assert() in Py_BUILD_ASSERT() on C11 (#118398)Victor Stinner2024-04-301-0/+3
| | | | | | Use static_assert() in Py_BUILD_ASSERT() and Py_BUILD_ASSERT_EXPR() on C11 and newer and C++11 and newer. Add tests to test_cext and test_cppext.
* gh-118218: Reuse return tuple in itertools.pairwise (GH-118219)Shantanu2024-04-301-0/+1
|
* gh-118406: Add signature for sqlite3.Connection objects (#118428)Erlend E. Aasland2024-04-301-0/+1
|
* gh-118272: Clear generator frame's locals when the generator is closed (#118277)Irit Katriel2024-04-301-0/+2
| | | Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* gh-117618: Make package.module searchable for breakpoints and clean up docs ↵Tian Gao2024-04-301-0/+1
| | | | (#117619)
* gh-118402: Fix inspect.signature() for functools.cmp_to_key() result (GH-118427)Serhiy Storchaka2024-04-301-0/+2
|
* gh-116622: Redirect stdout and stderr to system log when embedded in an ↵Malcolm Smith2024-04-301-0/+1
| | | | Android app (#118063)
* gh-118404: Fix inspect.signature() for non-comparable callables (GH-118405)Serhiy Storchaka2024-04-301-0/+1
|
* GH-118306: Update JIT to use LLVM 18 (GH-118307)Savannah Ostrowski2024-04-291-0/+1
|
* gh-118347: Fix Windows installer not updating launcher (GH-118386)Steve Dower2024-04-291-0/+1
|
* gh-118285: Fix signatures of operator.{attrgetter,itemgetter,methodcaller} ↵Serhiy Storchaka2024-04-291-0/+4
| | | | | | | | | instances (GH-118316) * Allow to specify the signature of custom callable instances of extension type by the __text_signature__ attribute. * Specify signatures of operator.attrgetter, operator.itemgetter, and operator.methodcaller instances.
* gh-107674: Lazy load line number to improve performance of tracing (GH-118127)Tian Gao2024-04-291-0/+1
|
* gh-115119: Detect _decimal dependencies using pkg-config (#115406)Erlend E. Aasland2024-04-291-0/+2
| | | pkg-config is supported for libmpdec 4.0.0 and newer.
* gh-118293: Suppress mouse cursor feedback when launching Windows processes ↵Henrik Tunedal2024-04-281-0/+2
| | | | with multiprocessing (GH-118315)
* gh-101100: Fix Sphinx warnings in `whatsnew/3.9.rst` (#118364)Hugo van Kemenade2024-04-285-10/+10
|
* gh-109118: Make comprehensions work within annotation scopes, but without ↵Jelle Zijlstra2024-04-281-0/+3
| | | | | inlining (#118160) Co-authored-by: Carl Meyer <carl@oddbird.net>
* Correct spelling error in recent NEWS entry (#118308)Xie Yanbo2024-04-271-1/+1
|
* bpo-32839: Add the after_info() method for Tkinter widgets (GH-5664)Cheryl Sabella2024-04-261-0/+1
|
* gh-117385: Remove unhooked events on sys.settrace (GH-117386)Tian Gao2024-04-261-0/+1
|
* gh-117928: Bump the minimum Sphinx version to 6.2.1 (#117853)Kirill Podoprigora2024-04-261-0/+1
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-117566: fix IPv6Address.is_loopback for IPv4-mapped loopbacks (GH-117567)Faidon Liambotis2024-04-251-0/+3
| | | | | | | | | | | | | | | | | | | While properties like IPv6Address.is_private account for IPv4-mapped IPv6 addresses, such as for example: >>> ipaddress.ip_address("192.168.0.1").is_private True >>> ipaddress.ip_address("::ffff:192.168.0.1").is_private True ...the same doesn't currently apply to the is_loopback property: >>> ipaddress.ip_address("127.0.0.1").is_loopback True >>> ipaddress.ip_address("::ffff:127.0.0.1").is_loopback False At minimum, this inconsistency between different properties is counter-intuitive. Moreover, ::ffff:127.0.0.0/104 is for all intents and purposes a loopback address, and should be treated as such.
* gh-102511: Speed up os.path.splitroot() with native helpers (GH-118089)Nice Zombies2024-04-251-0/+1
|
* gh-118221: Always use the default row factory in sqlite3.iterdump() (#118223)Erlend E. Aasland2024-04-251-0/+2
| | | | | | | | | | | | sqlite3.iterdump() depends on the row factory returning resulting rows as tuples; it will fail with custom row factories like for example a dict factory. With this commit, we explicitly reset the row factory of the cursor used by iterdump(), so we always get predictable results. This does not affect the row factory of the parent connection. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-117786: Fix venv created from Windows Store install by restoring ↵Steve Dower2024-04-241-0/+2
| | | | __PYVENV_LAUNCHER__ smuggling (GH-117814)
* gh-108191: Add support of positional argument in SimpleNamespace constructor ↵Serhiy Storchaka2024-04-241-0/+3
| | | | | | | (GH-108195) SimpleNamespace({'a': 1, 'b': 2}) and SimpleNamespace([('a', 1), ('b', 2)]) are now the same as SimpleNamespace(a=1, b=2).
* gh-76785: Rename _xxsubinterpreters to _interpreters (gh-117791)Eric Snow2024-04-241-0/+6
| | | See https://discuss.python.org/t/pep-734-multiple-interpreters-in-the-stdlib/41147/26.
* gh-118013: Use weakrefs for the cache key in `inspect._shadowed_dict` (#118202)Alex Waygood2024-04-241-0/+9
|
* GH-117536: GH-117894: fix athrow().throw(...) unawaited warning (GH-117851)Thomas Grainger2024-04-242-0/+2
|
* gh-117225: Add color to doctest output (#117583)Hugo van Kemenade2024-04-241-0/+1
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-117901: Add option for compiler's codegen to save nested instruction ↵Irit Katriel2024-04-241-0/+1
| | | | sequences for introspection (#118007)
* gh-116023: Add `show_empty=False` to `ast.dump` (#116037)Nikita Sobolev2024-04-241-0/+3
| | | Co-authored-by: Carl Meyer <carl@oddbird.net>
* gh-118168: Fix Unpack interaction with builtin aliases (#118169)Jelle Zijlstra2024-04-231-0/+4
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-118082: Improve `import` without names syntax error message (#118083)Nikita Sobolev2024-04-231-0/+3
|
* gh-68114: Fix handling for removed PyArg_ParseTuple 'w' formatters (GH-8204)Joe Jevnik2024-04-231-0/+2
| | | | Co-authored-by: Joe Jevnik <joe@quantopian.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-95754: Better error when script shadows a standard library or third party ↵Shantanu2024-04-231-0/+4
| | | | module (#113769)
* gh-116741: Upgrade libexpat to 2.6.2 (#117296)Seth Michael Larson2024-04-232-10/+11
| | | Upgrade libexpat to 2.6.2
* GH-118074: Executors in the COLD_EXITS array are not GC'able (#118117)Guido van Rossum2024-04-221-0/+2
|
* gh-109118: Allow lambdas in annotation scopes in classes (#118019)Jelle Zijlstra2024-04-221-0/+2
|
* bpo-18108: Adding dir_fd and follow_symlinks keyword args to shutil.chown ↵tahia2024-04-221-0/+1
| | | | | | | | | | | (GH-15811) * Adding dir_fd and follow_symlinks keyword args to shutil.chown * Extending test_shutil.TestShutil.test_chown to include new kwargs * Updating shutil.chown documentation Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Berker Peksag <berker.peksag@gmail.com> Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
* gh-117995: Don't raise DeprecationWarnings for indexed nameless params (#118001)Erlend E. Aasland2024-04-221-0/+2
| | | | | Filter out '?NNN' placeholders when looking for named params. Co-authored-by: AN Long <aisk@users.noreply.github.com>
* gh-115961: Add name and mode attributes for compressed file-like objects ↵Serhiy Storchaka2024-04-211-0/+7
| | | | | | | | | | (GH-116036) * Add name and mode attributes for compressed and archived file-like objects in modules bz2, lzma, tarfile and zipfile. * Change the value of the mode attribute of GzipFile from integer (1 or 2) to string ('rb' or 'wb'). * Change the value of the mode attribute of ZipExtFile from 'r' to 'rb'.