summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-118221: Always use the default row factory in sqlite3.iterdump() (#118223)Erlend E. Aasland2024-04-253-0/+18
| | | | | | | | | | | | 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-118207: Rename the COMMON_FIELDS macro in funcobject.h and undef it after ↵Itamar Oren2024-04-251-3/+5
| | | | use (GH-118208)
* gh-117968: Make the test for closed file more safe in the C API tests ↵Serhiy Storchaka2024-04-251-2/+4
| | | | | | | | (GH-118230) The behavior of fileno() after fclose() is undefined, but it is the only practical way to check whether the file was closed. Only test this on the known platforms (Linux, Windows, macOS), where we already tested that it works.
* gh-117786: Fix venv created from Windows Store install by restoring ↵Steve Dower2024-04-244-12/+21
| | | | __PYVENV_LAUNCHER__ smuggling (GH-117814)
* GH-118246: Exclude test_pathlib and test_posixpath from emulated JIT CI ↵Savannah Ostrowski2024-04-241-2/+2
| | | | (GH-118247)
* gh-108191: Add support of positional argument in SimpleNamespace constructor ↵Serhiy Storchaka2024-04-245-20/+92
| | | | | | | (GH-108195) SimpleNamespace({'a': 1, 'b': 2}) and SimpleNamespace([('a', 1), ('b', 2)]) are now the same as SimpleNamespace(a=1, b=2).
* gh-117953: Fix Refleaks Introduced by gh-118194 (gh-118250)Eric Snow2024-04-241-1/+5
| | | | | A couple of refleaks slipped through in gh-118194. This takes care of them. (AKA _Py_ext_module_loader_info_init() does not steal references.)
* gh-112730: Make the test suite resilient to color-activation environment ↵Pablo Galindo Salgado2024-04-2413-16/+89
| | | | variables (#117672)
* gh-85453: Make numeric literals consistent across datetime.rst (#118245)edson duarte2024-04-241-3/+3
| | | Remove code formatting from remaining numeric literals.
* gh-85453: Adapt datetime.rst to devguide recommendations for code snippets ↵edson duarte2024-04-241-45/+45
| | | | | | | | | and variables (#118068) Also remove formatting from numeric literals. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-117953: Add Internal struct _Py_ext_module_loader_info (gh-118194)Eric Snow2024-04-243-94/+180
| | | This helps with a later change that splits up _PyImport_LoadDynamicModuleWithSpec().
* gh-116988: Remove duplicates of `annotated_rhs` in the Grammar (#117004)David Rubin2024-04-243-2101/+1570
|
* gh-117953: Let update_global_state_for_extension() Caller Decide If ↵Eric Snow2024-04-241-20/+93
| | | | | Singlephase or Not (gh-118193) This change makes other upcoming changes simpler.
* gh-76785: Rename _xxsubinterpreters to _interpreters (gh-117791)Eric Snow2024-04-2434-543/+550
| | | See https://discuss.python.org/t/pep-734-multiple-interpreters-in-the-stdlib/41147/26.
* gh-117953: Cleanups For fix_up_extension() in import.c (gh-118192)Eric Snow2024-04-245-97/+163
| | | These are cleanups I've pulled out of gh-118116. Mostly, this change moves code around to align with some future changes and to improve clarity a little. There is one very small change in behavior: we now add the module to the per-interpreter caches after updating the global state, rather than before.
* gh-118013: Use weakrefs for the cache key in `inspect._shadowed_dict` (#118202)Alex Waygood2024-04-245-8/+59
|
* GH-115419: Move setting the instruction pointer to error exit stubs (GH-118088)Mark Shannon2024-04-245-5/+6
|
* GH-118095: Convert DEOPT_IFs on likely side exits to EXIT_IFs (GH-118106)Mark Shannon2024-04-244-24/+24
| | | Covert DEOPT_IFs on likely side exits to EXIT_IFs
* GH-117536: GH-117894: fix athrow().throw(...) unawaited warning (GH-117851)Thomas Grainger2024-04-244-13/+81
|
* gh-117225: Add color to doctest output (#117583)Hugo van Kemenade2024-04-245-15/+92
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* no-issue: devcontainer: update to Fedora 40 (gh-118161)rindeal2024-04-241-1/+1
|
* gh-117901: Add option for compiler's codegen to save nested instruction ↵Irit Katriel2024-04-244-1/+115
| | | | sequences for introspection (#118007)
* gh-116023: Add `show_empty=False` to `ast.dump` (#116037)Nikita Sobolev2024-04-244-167/+249
| | | Co-authored-by: Carl Meyer <carl@oddbird.net>
* gh-118074: Immortal executors are not GC-able (#118182)Guido van Rossum2024-04-231-4/+1
| | | | | Better version of gh-118117. Just check for immortality instead of an address range check.
* gh-118189: Revert accidentally added incl.tar (#118190)Oleg Iarygin2024-04-231-0/+0
|
* gh-117657: Quiet TSAN warnings about remaining non-atomic accesses of ↵mpage2024-04-232-2/+3
| | | | | `tstate->state` (#118165) Quiet TSAN warnings about remaining non-atomic accesses of `tstate->state`
* Fix typo in py_compile.rst (GH-118102)Animesh Kumar2024-04-231-1/+1
|
* gh-117151: optimize BufferedWriter(), do not buffer writes that are the ↵morotti2024-04-231-2/+2
| | | | | | | | | buffer size (GH-118037) BufferedWriter() was buffering calls that are the exact same size as the buffer. it's a very common case to read/write in blocks of the exact buffer size. it's pointless to copy a full buffer, it's costing extra memory copy and the full buffer will have to be written in the next call anyway. Co-authored-by: rmorotti <romain.morotti@man.com>
* gh-117953: Small Cleanup of Extensions-Related Machinery Code (gh-118167)Eric Snow2024-04-233-75/+105
| | | This is a collection of very basic cleanups I've pulled out of gh-118116. It is mostly renaming variables and moving a couple bits of code in functionally equivalent ways.
* gh-118168: Fix Unpack interaction with builtin aliases (#118169)Jelle Zijlstra2024-04-233-2/+39
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-118140: Make the``test_concurrent_futures.test_init`` quiet. (GH-118141)Kirill Podoprigora2024-04-231-1/+2
| | | Add stream argument to unittest.TextTestRunner call
* gh-118082: Improve `import` without names syntax error message (#118083)Nikita Sobolev2024-04-234-149/+219
|
* gh-68114: Fix handling for removed PyArg_ParseTuple 'w' formatters (GH-8204)Joe Jevnik2024-04-234-17/+146
| | | | Co-authored-by: Joe Jevnik <joe@quantopian.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-116984: Install mimalloc headers (#116985)Yichen Yan2024-04-233-2/+22
| | | | - Install mimalloc header only when enabled - Rename WITH_MIMALLOC to INSTALL_MIMALLOC
* gh-118039: Fix config.cache key on WASI (#118137)Nice Zombies2024-04-232-2/+5
|
* gh-95754: Better error when script shadows a standard library or third party ↵Shantanu2024-04-238-53/+456
| | | | module (#113769)
* gh-116741: Upgrade libexpat to 2.6.2 (#117296)Seth Michael Larson2024-04-235-26/+47
| | | Upgrade libexpat to 2.6.2
* GH-118074: Executors in the COLD_EXITS array are not GC'able (#118117)Guido van Rossum2024-04-222-0/+12
|
* Set proper permissions for `jit.yml` workflow (#118084)Nikita Sobolev2024-04-221-0/+3
|
* gh-109118: Allow lambdas in annotation scopes in classes (#118019)Jelle Zijlstra2024-04-224-13/+53
|
* Remove more remnants of deepfreeze (#118159)Guido van Rossum2024-04-225-29/+0
|
* bpo-18108: Adding dir_fd and follow_symlinks keyword args to shutil.chown ↵tahia2024-04-225-4/+53
| | | | | | | | | | | (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-118030: Group definitions for `ParamSpecArgs` and `ParamSpecKwargs` in ↵Nice Zombies2024-04-221-1/+1
| | | | `typing.rst` (#118154)
* gh-118148: Improve tests for shutil.make_archive() (GH-118149)Serhiy Storchaka2024-04-221-71/+176
|
* GH-115480: Reduce guard strength for binary ops when type of one operand is ↵Mark Shannon2024-04-2210-103/+316
| | | | known already (GH-118050)
* gh-115986 Improve pprint documentation accuracy (#117403)Kerim Kabirov2024-04-221-3/+2
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-117995: Don't raise DeprecationWarnings for indexed nameless params (#118001)Erlend E. Aasland2024-04-223-1/+17
| | | | | Filter out '?NNN' placeholders when looking for named params. Co-authored-by: AN Long <aisk@users.noreply.github.com>
* gh-112075: Make instance attributes stored in inline "dict" thread safe ↵Dino Viehland2024-04-2213-142/+419
| | | | | (#114742) Make instance attributes stored in inline "dict" thread safe on free-threaded builds
* Docs: replace Harry Potter reference with Monty Python (#118130)Clément Robert2024-04-211-3/+3
|
* gh-115961: Add name and mode attributes for compressed file-like objects ↵Serhiy Storchaka2024-04-2117-37/+246
| | | | | | | | | | (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'.