summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-102654: Insert #line directives in generated_cases.c.h (#102669)Guido van Rossum2023-03-153-16/+530
| | | | | | | | | This behavior is optional, because in some extreme cases it may just make debugging harder. The tool defaults it to off, but it is on in Makefile.pre.in. Also note that this makes diffs to generated_cases.c.h noisier, since whenever you insert or delete a line in bytecodes.c, all subsequent #line directives will change.
* gh-101100: Documenting --prefix and --exec-prefix. (GH-102695)Julien Palard2023-03-155-8/+24
| | | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-102281: Fix potential nullptr dereference + use of uninitialized memory ↵Max Bachmann2023-03-153-2/+10
| | | | (gh-102282)
* gh-102615: Use `list` instead of `tuple` in `repr` of paramspec (#102637)Nikita Sobolev2023-03-153-3/+52
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Remove misformatted exclamation marks in docs (#102694)Tom Levy2023-03-152-3/+3
| | | | | | | | | | | | | | | | | Remove the exclamation mark from :program:`!foo` in .rst files because it inadvertently shows up in the rendered HTML. (Sphinx's cross-referencing roles use a '!' prefix to suppress hyperlinking[1], but :program: is not a cross-referencing role so the '!' is displayed verbatim.) The exclamation marks in venv.rst were introduced in #98350. See comments [2] and [3] for additional discussion. [1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax [2]: https://github.com/python/cpython/pull/98350#issuecomment-1285965759 [3]: https://github.com/python/cpython/pull/98350#issuecomment-1286394047 Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
* gh-101377: improving test_locale_calendar_formatweekday of calendar (#101378)Andre Hora2023-03-152-2/+7
| | | | | | --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-102560 Add docstrings to asyncio.TaskGroup (#102565)JosephSBoyle2023-03-151-0/+18
|
* gh-102519: Avoid failing tests due to inaccessible volumes (GH-102706)Steve Dower2023-03-151-6/+11
|
* gh-102703: Fix typo in modules tutorial documentation (GH-102707)Robert Prater (B. Eng)2023-03-151-1/+1
| | | | | | | | | **Before** This prevents directories with a common name, such as ``string``, unintentionally hiding ... **After** This prevents directories with a common name, such as ``string``, from unintentionally hiding ...
* gh-101578: mention in what's new in 3.12 that exceptions are now normalized ↵Irit Katriel2023-03-141-0/+5
| | | | before stored (#102702)
* Rename redundant enum tests so that they run (#102535)JosephSBoyle2023-03-141-3/+2
|
* gh-102674: Remove _specialization_stats from Lib/opcode.py (#102685)Dong-hee Na2023-03-142-10/+1
| | | It's not use except in a test, so move it there instead.
* gh-102660: Handle m_copy Specially for the sys and builtins Modules (gh-102661)Eric Snow2023-03-145-4/+44
| | | | | | | It doesn't make sense to use multi-phase init for these modules. Using a per-interpreter "m_copy" (instead of PyModuleDef.m_base.m_copy) makes this work okay. (This came up while working on gh-101660.) Note that we might instead end up disallowing re-load for sys/builtins since they are so special. https://github.com/python/cpython/issues/102660
* gh-102354: change python3 to python in docs examples (#102696)Paul Watson2023-03-145-6/+6
|
* gh-81057: Add a CI Check for New Unsupported C Global Variables (gh-102506)Eric Snow2023-03-148-54/+90
| | | | | | | | | | | This will keep us from adding new unsupported (i.e. non-const) C global variables, which would break interpreter isolation. FYI, historically it is very uncommon for new global variables to get added. Furthermore, it is rare for new code to break the c-analyzer. So the check should almost always pass unnoticed. Note that I've removed test_check_c_globals. A test wasn't a great fit conceptually and was super slow on debug builds. A CI check is a better fit. This also resolves gh-100237. https://github.com/python/cpython/issues/81057
* GH-94851: check unicode consistency of static strings in debug mode (#102684)Kumar Aditya2023-03-142-0/+665
|
* gh-100315: clarification to `__slots__` docs. (#102621)T2023-03-141-2/+4
| | | refer to tp_itemsize in discussion on "variable-length" built-in types
* GH-100227: cleanup initialization of global interned dict (#102682)Kumar Aditya2023-03-141-8/+10
|
* doc: Remove a duplicate 'versionchanged' in library/asyncio-task (gh-102677)Joongi Kim2023-03-141-3/+0
|
* gh-102013: Add PyUnstable_GC_VisitObjects (#102014)Jacob Bower2023-03-145-0/+146
|
* GH-102670: Use sumprod() to simplify, speed up, and improve accuracy of ↵Raymond Hettinger2023-03-143-13/+27
| | | | statistics functions (GH-102649)
* gh-102627: Replace address pointing toward malicious web page (#102630)Blind4Basics2023-03-131-1/+1
| | | | | | * Replace known bad address pointing toward a malicious web page. Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-98831: Use DECREF_INPUTS() more (#102409)Guido van Rossum2023-03-132-57/+38
|
* gh-101659: Avoid Allocation for Shared Exceptions in the _xxsubinterpreters ↵Eric Snow2023-03-131-74/+49
| | | | | Module (gh-102659) https://github.com/python/cpython/issues/101659
* gh-101524: Fix the ChannelID tp_name (gh-102655)Eric Snow2023-03-131-1/+1
| | | https://github.com/python/cpython/issues/101524
* gh-102069: Fix `__weakref__` descriptor generation for custom dataclasses ↵Nikita Sobolev2023-03-133-4/+15
| | | | (#102075)
* gh-98169 dataclasses.astuple support DefaultDict (#98170)T2023-03-133-13/+35
| | | Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
* gh-102650: Remove duplicate include directives from multiple source files ↵chgnrdv2023-03-135-8/+2
| | | | | (#102651) Remove duplicate include directives from multiple source files
* GH-100987: Don't cache references to the names and consts array in ↵Mark Shannon2023-03-133-53/+44
| | | | | | | `_PyEval_EvalFrameDefault`. (#102640) * Rename local variables, names and consts, from the interpeter loop. Will allow non-code objects in frames for better introspection of C builtins and extensions. * Remove unused dummy variables.
* gh-87092: refactor assemble() to a number of separate functions, which do ↵Irit Katriel2023-03-133-261/+318
| | | | not need the compiler struct (#102562)
* gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives ↵Irit Katriel2023-03-131-23/+19
| | | | (#102631)
* Fix broken link to MSDN (#102355)谭九鼎2023-03-132-2/+2
|
* GH-102300: Reuse objects with refcount == 1 in float specialized binary ops. ↵Mark Shannon2023-03-134-24/+27
| | | | (GH-102301)
* gh-101100: Fix Sphinx warnings in `turtle` module (#102340)Hugo van Kemenade2023-03-132-28/+32
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* GH-101673: Fix pdb bug where local variable changes are lost after longlist ↵gaogaotiantian2023-03-123-11/+32
| | | | (#101674)
* Fix duplicated words in the docs (GH-102629)Виталий Дмитриев2023-03-125-7/+6
| | | | | With grep utility found some duplicated words Automerge-Triggered-By: GH:AlexWaygood
* Optimize fmean() weighted average (#102626)Raymond Hettinger2023-03-121-18/+16
|
* Fixes duplicated word (#102623)Guido van Rossum2023-03-121-1/+1
| | | | | In line 1627, the end of the sentence reads "only that that it may be." but it should read "only that it may be" (or alternatively "only that that may be"). Co-authored-by: Hugo Gabriel Eyherabide <hugogabriel.eyherabide@gmail.com>
* gh-101821: Test coverage for `ast.main` function (#101822)Nikita Sobolev2023-03-111-0/+20
|
* gh-79940: skip `TestGetAsyncGenState` on wasm as it requires working sockets ↵Thomas Krennwallner2023-03-111-1/+3
| | | | | | | | | (GH-102605) Skip `TestGetAsyncGenState` and restoring of the default event loop policy in `test_inspect` if platform lacks working socket support. Fixes #11590 Automerge-Triggered-By: GH:kumaraditya303
* gh-79940: add introspection API for asynchronous generators to `inspect` ↵Thomas Krennwallner2023-03-116-2/+199
| | | | module (#11590)
* gh-102213: Optimize the performance of `__getattr__` (GH-102248)wangxiang-hz2023-03-114-3/+14
| | | | When __getattr__ is defined, python with try to find an attribute using _PyObject_GenericGetAttrWithDict find nothing is reasonable so we don't need an exception, it will hurt performance.
* gh-102433: Add tests for how classes with properties interact with ↵Alex Waygood2023-03-111-0/+88
| | | | | `isinstance()` checks on `typing.runtime_checkable` protocols (#102449) Co-authored-by: Carl Meyer <carl@oddbird.net>
* GH-90997: Shrink the LOAD_GLOBAL caches (#102569)Brandt Bucher2023-03-1111-172/+187
|
* gh-88071: Update docstrings of dataclass' astuple and asdict (#101806)Ilya V. Schurov2023-03-111-2/+2
| | | Update dataclasses.astuple and dataclasses.asdict docstrings to reflect that they deep copy objects in the field values.
* gh-102103: add `module` argument to `dataclasses.make_dataclass` (#102104)Nikita Sobolev2023-03-114-2/+60
|
* gh-102578: Optimise setting and deleting mutable attributes on non-dataclass ↵Xuehai Pan2023-03-113-6/+52
| | | | subclasses of frozen dataclasses (gh-102573)
* GH-80486: Fix handling of NTFS alternate data streams in pathlib (GH-102454)Barney Gale2023-03-103-4/+34
| | | Co-authored-by: Maor Kleinberger <kmaork@gmail.com>
* gh-102519: Add doc updates for os.listdrives, listvolumes and listmounts ↵Steve Dower2023-03-101-0/+63
| | | | (GH-102585)
* GH-102537: Handle check for PYTHONTZPATH failing in zoneinfo test (GH-102538)Paul Ganssle2023-03-102-1/+10
| | | | | It is possible but unlikely for the `python_tzpath_context` function to fail between the start of the `try` block and the point where `os.environ.get` succeeds, in which case `old_env` will be undefined. In this case, we want to take no action. Practically speaking this will really only happen in an error condition anyway, so it doesn't really matter, but we should probably do it right anyway.