summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-95166: cancel map waited on future on timeout (GH-95169)Thomas Grainger2022-07-283-2/+42
| | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* GH-90081: Run python tracers at full speed (GH-95328)Mark Shannon2022-07-283-6/+12
|
* Docs: Fix refs & tweak wording in sqlite3 'Using shortcut methods'Erlend Egeberg Aasland2022-07-281-2/+3
| | | Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-94938: Fix errror detection of unexpected keyword arguments (GH-94999)Serhiy Storchaka2022-07-284-85/+112
| | | | | | | | | | When keyword argument name is an instance of a str subclass with overloaded methods __eq__ and __hash__, the former code could not find the name of an extraneous keyword argument to report an error, and _PyArg_UnpackKeywords() returned success without setting the corresponding cell in the linearized arguments array. But since the number of expected initialized cells is determined as the total number of passed arguments, this lead to reading NULL as a keyword parameter value, that caused SystemError or crash or other undesired behavior.
* gh-95174: Add pthread stubs for WASI (GH-95234)Christian Heimes2022-07-2717-41/+332
| | | Co-authored-by: Brett Cannon <brett@python.org>
* gh-95339: update bundled pip to 22.2.1 (gh-95340)Stéphane Bidoul2022-07-273-1/+2
|
* gh-95324: Emit a warning if an object doesn't call PyObject_GC_UnTrack ↵Pablo Galindo Salgado2022-07-278-2/+18
| | | | during deallocation in debug mode (#95325)
* gh-95174: Move WASIX logic into wasi-env (GH-95320)Christian Heimes2022-07-272-9/+22
| | | | | | wasi-env now sets WASIX flags. This allows us to control all build parameter for wasm32-wasi buildbot from CPython repository. Also export and improve SYSROOT parameter.
* gh-95273: Normalise sqlite3 reference wording (#95274)Erlend Egeberg Aasland2022-07-271-45/+48
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
* GH-93899: fix checks for eventfd flags (GH-95170)Kumar Aditya2022-07-273-10/+15
|
* gh-94630: Fixup sqlite3 argument spec docs for connection execute* methods ↵Erlend Egeberg Aasland2022-07-271-5/+5
| | | | (#95319)
* GH-95045: gc untrack _lsprof.Profiler before deallocating it (GH-95315)Kumar Aditya2022-07-272-0/+2
| | | Automerge-Triggered-By: GH:pablogsal
* gh-93963: Remove usage of deprecated interface from importlib.abc. (#95217)Jason R. Coombs2022-07-273-2/+3
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-95005: Replace PyAccu with PyUnicodeWriter (gh-95006)Aivars Kalvāns2022-07-2710-239/+69
|
* gh-95280: Fix test_get_ciphers on systems without RSA key exchange (GH-95282)Christian Heimes2022-07-272-2/+16
|
* gh-95174: WASI: skip missing sockets functions (GH-95179)Christian Heimes2022-07-2711-27/+864
|
* 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>