summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Doc: Add omitted secondary prompt in inputoutput tutorial (GH-30317)Chenwei Xiao2022-07-231-1/+1
| | | For the continuation lines, "..." should present as secondary prompt
* gh-95132: Correctly relay *args and **kwds from sqlite3.connect to factory ↵Erlend Egeberg Aasland2022-07-235-147/+59
| | | | | | | | | | | | (#95146) This PR partially reverts gh-24421 (PR) and fixes the remaining concerns given in gh-93044 (issue): - keyword arguments are passed as positional arguments to factory() - if an argument is not passed to sqlite3.connect(), its default value is passed to factory() Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-90385: Add `pathlib.Path.walk()` method (GH-92517)Stanislav Zmiev2022-07-225-1/+338
| | | Automerge-Triggered-By: GH:brettcannon
* GH-94438: Handle extended arguments and conditional pops in mark_stacks ↵Brandt Bucher2022-07-223-4/+49
| | | | (GH-95110)
* GH-94036: Fix more attribute location quirks (GH-95028)Brandt Bucher2022-07-223-20/+85
|
* Fix copy-friendliness of tutorial example (GH-93424)Chenwei Xiao2022-07-221-0/+1
|
* GH-95113: Don't use EXTENDED_ARG_QUICK in unquickened code (GH-95121)Brandt Bucher2022-07-228-200/+20
|
* Fix async method reference links in `compound_stmts` docs (GH-94935)July Tikhonov2022-07-221-2/+2
|
* Fix scheme count in `sysconfig` whatsnew entry (GH-94110)Frank Dana2022-07-221-1/+1
|
* Fix incorrect directive in multiprocessing module documentation (GH-93517)oda-gitso2022-07-221-1/+1
|
* Closes gh-95133: docs, fix indentation level in TestCase.assertLogs example ↵Alexandru Mărășteanu2022-07-221-2/+2
| | | | (GH-95134)