summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-95085: Promote Emscripten and WASI to PEP 11 tier 3 (GH-95086)Christian Heimes2022-07-275-8/+23
|
* gh-94635: Add sqlite3 'Introduction' and 'Tutorial' doc headings (#95269)Erlend Egeberg Aasland2022-07-271-1/+11
|
* gh-94673: Add Per-Interpreter Storage for Static Builtin Types (#95255)Eric Snow2022-07-265-7/+125
| | | | | | | | | | | | | | This is the last precursor to storing tp_subclasses (and tp_weaklist) on the interpreter state for static builtin types. Here we add per-type storage on PyInterpreterState, but only for the static builtin types. This involves the following: * add PyInterpreterState.types * move PyInterpreterState.type_cache to it * add a "num_builtins_initialized" field * add a "builtins" field (a static array big enough for all the static builtin types) * add _PyStaticType_GetState() to look up a static builtin type's state * (temporarily) add PyTypeObject.tp_static_builtin_index (to hold the type's index into PyInterpreterState.types.builtins) We will be eliminating tp_static_builtin_index in a later change.
* gh-95285: py.exe launcher fails with short argv0 (GH-95295)Steve Dower2022-07-263-3/+20
|
* gh-93678: Address stack exhaustion on WASI (GH-95296)Christian Heimes2022-07-262-4/+9
|
* gh-94801: Fix regression in configure's CPPFLAGS handling (GH-95288)Christian Heimes2022-07-263-33/+35
|
* gh-95291: Use import helper to improve sqlite3 audit tests (#95292)Erlend Egeberg Aasland2022-07-261-4/+1
| | | Now the tests are correctly reported as skipped if sqlite3 is not available.
* Fix minor docstring issues in `dataclasses.py`. (gh-93024)Roman Novak2022-07-261-7/+7
| | | Previously, when using `functools.wrap` around them (and inherit their docstrings), sphinx renders the docstrings badly and raises warnings about wrong indent.
* gh-93678: extract 'struct cfg_builder' from the compiler so that the CFG can ↵Irit Katriel2022-07-262-120/+114
| | | | be manipulated directly (GH-95107)
* gh-95259: add test for traceback with angle-bracketed filename (GH-95260)Irit Katriel2022-07-261-0/+15
|
* gh-95041: Fail syslog.syslog in case inner call to syslog.openlog fails ↵Noam Cohen2022-07-261-1/+7
| | | | (GH-95264)
* gh-95066: ast: Replace assert with ValueError (GH-95072)Shantanu2022-07-263-1/+9
| | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-95174: Handle missing dup() and constants in WASI (GH-95229)Christian Heimes2022-07-2612-5/+47
| | | | | | | - check for ``dup()`` libc function - handle missing ``F_DUPFD`` in ``dup2()`` replacement function - add workaround for WASI libc bug in MSG_TRUNC - ESHUTDOWN is missing, use EPIPE instead - POLLPRI is missing, define as 0 (no-op)
* gh-95205: Improve WASM README.md (GH-95267)Christian Heimes2022-07-262-12/+112
| | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* Statistics inv_cdf sync with corresponding random module normal ↵Raymond Hettinger2022-07-263-6/+5
| | | | distributions (#95265)
* Clarifying the documentation on library/syslog (GH-92587)Nicolas Haller2022-07-261-3/+7
|
* gh-95235: Add explicit parameter list to some sqlite3 methods (#95240)Erlend Egeberg Aasland2022-07-261-67/+143
| | | Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-95041: Fix several minor issues in syslog.openlog() (GH-95058)Serhiy Storchaka2022-07-261-24/+33
| | | | | | | | | | | | * syslog_get_argv() swallows exceptions, but not in all cases. * if ident is non UTF-8 encodable, syslog.openlog() fails after setting the global reference to ident. Now the C string saved internally in the previous call to openlog() points to the freed memory. * PySys_Audit() can crash if ident is NULL. * There may be a race condition with syslog.syslog(), because the global reference to ident is decrefed before setting the new value. * Possible use of freed memory if syslog.openlog() is called while the GIL is released in syslog.syslog().
* gh-91247: Use memcpy for list and tuple repeat (#91482)Pieter Eendebak2022-07-265-65/+73
| | | | | | | * Add _Py_memory_repeat function to pycore_list * Add _Py_RefcntAdd function to pycore_object * Use the new functions in tuplerepeat, list_repeat, and list_inplace_repeat
* GH-92678: Expose managed dict clear and visit functions (#95246)Mark Shannon2022-07-255-0/+57
|
* gh-94673: Always Finalize Static Builtin Types (#95153)Eric Snow2022-07-252-24/+82
| | | | | | | | | | | | | Static builtin types are finalized by calling _PyStaticType_Dealloc(). Before this change, we were skipping finalizing such a type if it still had subtypes (i.e. its tp_subclasses hadn't been cleared yet). The problem is that types hold several heap objects, which leak if we skip the type's finalization. This change addresses that. For context, there's an old comment (from e9e3eab0b86) that says the following: // If a type still has subtypes, it cannot be deallocated. // A subtype can inherit attributes and methods of its parent type, // and a type must no longer be used once it's deallocated. However, it isn't clear that is actually still true. Clearing tp_dict should mean it isn't a problem. Furthermore, the only subtypes that might still be around come from extension modules that didn't clean them up when unloaded (i.e. extensions that do not implement multi-phase initialization, AKA PEP 489). Those objects are already leaking, so this change doesn't change anything in that regard. Instead, this change means more objects gets cleaned up that before.
* gh-85454: Remove distutils.ccompiler from Tools/c-analyzer (GH-95171)Dong-hee Na2022-07-251-2/+12
|
* gh-94673: Add _PyStaticType_InitBuiltin() (#95152)Eric Snow2022-07-2513-76/+133
| | | | | | | | | | | | This is the first of several precursors to storing tp_subclasses (and tp_weaklist) on the interpreter state for static builtin types. We do the following: * add `_PyStaticType_InitBuiltin()` * add `_Py_TPFLAGS_STATIC_BUILTIN` * set it on all static builtin types in `_PyStaticType_InitBuiltin()` * shuffle some code around to be able to use _PyStaticType_InitBuiltin() * rename `_PyStructSequence_InitType()` to `_PyStructSequence_InitBuiltinWithFlags()` * add `_PyStructSequence_InitBuiltin()`.
* gh-92546: Move pprint benchmark into pyperformance (GH-94613)Oleg Iarygin2022-07-252-16/+2
| | | | | This PR couples with https://github.com/python/pyperformance/pull/222 and supersedes https://github.com/python/cpython/pull/92560. Inspired by https://github.com/python/cpython/issues/93096#issuecomment-1134576471. Automerge-Triggered-By: GH:ericsnowcurrently
* gh-95077: [Enum] add code-based deprecation warnings for member.member ↵Ethan Furman2022-07-255-68/+61
| | | | | | | access (GH-95083) * issue deprecation warning for member.member access * always store member property in current class * remove __getattr__
* GH-94851: check refcnt of immortal objects after finalization (GH-95001)Kumar Aditya2022-07-254-1/+4430
|
* gh-95235: Document undocumented parameters in sqlite3 functions and methods ↵Erlend Egeberg Aasland2022-07-251-13/+17
| | | | | (#95236) Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-93963: Document importlib.abc deprecations (#94546)Hugo van Kemenade2022-07-252-0/+27
|
* gh-93610: Improve docs for importlib.resources (#93611)Petr Viktorin2022-07-254-281/+328
| | | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-85454: Remove distutils documentation (#95239)Christian Heimes2022-07-2525-4543/+26
| | | | Most places now refer to setuptools or link to setuptools documentation. Some examples like zipapp need to be updated later.
* gh-85454: Remove links from historical mentions of distutils (GH-95192)Oleg Iarygin2022-07-2513-28/+28
|
* gh-95233: Correct grp.getgrgid parameter name in documentation (gid -> id) ↵Adam Dangoor2022-07-251-1/+1
| | | | (gh-95232)
* gh-95205: Improve wasm README (#95206)Erlend Egeberg Aasland2022-07-251-2/+6
| | | Co-authored-by: Christian Heimes <christian@python.org>
* gh-95087: Fix IndexError in parsing invalid date in the email module (GH-95201)Serhiy Storchaka2022-07-254-23/+60
| | | | Co-authored-by: wouter bolsterlee <wouter@bolsterl.ee>
* gh-95212: make multiprocessing test case parallel-safe (GH-95213)Christian Heimes2022-07-252-1/+3
|
* gh-95218: Move tests for importlib.resources into test_importlib.resources. ↵Jason R. Coombs2022-07-2536-24/+25
| | | | | | | | | (#95219) * gh-95218: Move tests for importlib.resources into test_importlib.resources. * Also update makefile * Include test_importlib/resources in code ownership rule.
* gh-95173: Revert commit 51ed2c56a1852cd6b09c85ba81312dc9782772ce (#95176)Pablo Galindo Salgado2022-07-242-71/+13
|
* gh-95051: ensure that timeouts scheduled with `asyncio.Timeout` that have ↵Thomas Grainger2022-07-244-4/+32
| | | | | | already expired are deliverered promptly (#95109) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* log2() is faster than log() (#95214)Raymond Hettinger2022-07-241-3/+3
|
* gh-95185: Check recursion depth in the AST constructor (#95186)Pablo Galindo Salgado2022-07-245-2/+168
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-95199: upgrade bundled setuptools to 63.2.0 (gh-95200)Stéphane Bidoul2022-07-244-1/+2
|
* gh-95194: upgrade bundled pip to 22.2 (gh-95195)Stéphane Bidoul2022-07-244-1/+2
| | | upgrade bundled pip to 22.2
* gh-95174: Handle missing waitpid and gethostbyname in WASI (GH-95181)Christian Heimes2022-07-242-6/+19
|
* gh-93157: Fix fileinput didn't support `errors` in `inplace` mode (GH-95128)Inada Naoki2022-07-243-3/+18
|
* Compute v only when needed. (#95183)Raymond Hettinger2022-07-231-1/+1
|
* gh-90385: Add skip_unless_symlink decorator to test_walk_symlink_location ↵Christian Heimes2022-07-231-0/+1
| | | | (GH-95182)
* gh-93351: Add news entry and what's new entry for changes in gh-93351 (#95175)Pablo Galindo Salgado2022-07-232-0/+7
|
* gh-90473: Check for HAVE_KILL in main.c:exit_sigint (GH-95165)Christian Heimes2022-07-231-1/+1
|
* gh-90473: Fix more tests on platforms without umask (GH-95164)Christian Heimes2022-07-233-2/+18
|
* gh-89758: Track all socket module dependencies (#95157)Christian Heimes2022-07-231-1/+1
|