summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-94772: Fix off-by-one error in Windows launcher (GH-94779)Paul Moore2022-07-163-1/+28
|
* [3.11] bpo-14916: interactive fd is not tied to stdin [type-bug] (#91469)Paul m. p. Peny2022-07-162-1/+2
| | | | | | | | | | | * bpo-14916: interactive fd is not always stdin related to https://github.com/python/cpython/pull/31006 merged bugfix following https://bugs.python.org/issue14916 * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* Tutorial sys.argv example should not have interactive prompt (GH-94880)Marco Buttu2022-07-161-4/+8
|
* Add additional pointers to pathlib's mapping to os.path functions (#94828)Chris Adams2022-07-151-1/+2
| | | | | | | | | | | | | * Add additional pointers to pathlib's mapping to os.path functions os.path.splitext has a somewhat quirky signature since it mixes the path and filename components but I wanted the documentation to mention `PurePath.stem` as the natural counterpart to `PurePath.suffix` for the common use of `os.path.splitext` to turn "file.py" into "file" and "py". Technically this could have some discussion of how to handle the parent directory hierarchy but that seems a bit out of keeping with the spirit of this table so I omitted mentioning `PurePath.parents` here. * Update Doc/library/pathlib.rst Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-94814: Improve coverage of _PyCode_CreateLineArray (GH-94852)Michael Droettboom2022-07-151-0/+22
| | | | | | | The case where there are more than (1 << 15) lines was not covered. I don't know if increasing test coverage requires a blurb -- let me know if it does. Automerge-Triggered-By: GH:brandtbucher
* gh-94801: Use custom flags to check for headers and libs (#94802)Christian Heimes2022-07-153-318/+407
|
* gh-94821: Fix autobind of empty unix domain address (GH-94826)Nir Soffer2022-07-153-2/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When binding a unix socket to an empty address on Linux, the socket is automatically bound to an available address in the abstract namespace. >>> s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) >>> s.bind("") >>> s.getsockname() b'\x0075499' Since python 3.9, the socket is bound to the one address: >>> s.getsockname() b'\x00' And trying to bind multiple sockets will fail with: Traceback (most recent call last): File "/home/nsoffer/src/cpython/Lib/test/test_socket.py", line 5553, in testAutobind s2.bind("") OSError: [Errno 98] Address already in use Added 2 tests: - Auto binding empty address on Linux - Failing to bind an empty address on other platforms Fixes f6b3a07b7df6 (bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866)
* [doc] Update cookbook example and add information about queue types. (GH-94854)Vinay Sajip2022-07-152-1/+11
|
* GH-46771: docs for asyncio.timeout and task cancellation (#94794)Tin Tvrtković2022-07-151-0/+134
|
* gh-94808: Add coverage for boolobject.c:bool_new (GH-94859)Michael Droettboom2022-07-141-0/+7
| | | | | `bool_new` had no coverage. Automerge-Triggered-By: GH:brandtbucher
* Docs: fix typo in sqlite3.rst (#94798)Ikko Ashimine2022-07-141-1/+1
| | | Colum -> Column
* GH-94808: Cover handling non-finite numbers from round when ndigits is ↵Michael Droettboom2022-07-141-0/+5
| | | | provided (GH-94860)
* gh-94816: Improve coverage of decode_linetable (GH-94853)Michael Droettboom2022-07-141-0/+23
| | | | | | | This makes calls to co_lnotab to exercise this code, as well as generating synthetically large code to exercise the corner cases where line numbers need multiple bytes. Automerge-Triggered-By: GH:brandtbucher
* gh-94841: Ensure arena_map_get() is inlined in PyObject_Free() (#94842)neonene2022-07-142-1/+2
|
* gh-94731: Revert to C-style casts for _Py_CAST (GH-94782)Petr Viktorin2022-07-145-59/+85
| | | Co-authored-by: da-woods <dw-git@d-woods.co.uk>
* gh-93939: Build C extensions without setup.py (GH-94474)Christian Heimes2022-07-1414-1506/+89
| | | Combines GH-93940, GH-94452, and GH-94433
* gh-94309: Add typing.Hashable and typing.Sized for "What's New for Python ↵MonadChains2022-07-141-0/+3
| | | | | 3.12" (GH-94729) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* idlelib: replace 'while 1' with 'while True' (#94827)Terry Jan Reedy2022-07-146-8/+8
|
* gh-90359: Unify documentation style for datetime.rst (gh-94836)Dong-hee Na2022-07-141-0/+7
|
* gh-90359: Update documentation to follow PEP 495. (gh-94800)Dong-hee Na2022-07-141-0/+12
|
* gh-94499 Add test for private name mangling in class pattern matching (#94500)da-woods2022-07-131-0/+14
| | | | | | | The current status quo is that private attribute names are not mangled when a class is matched. I've added a test to document/legimize this behaviour. Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* gh-90815: Fix test_embed for Windows PGO build with mimalloc (GH-94790)neonene2022-07-131-0/+2
| | | Fixes the failure of PGO building with `mimalloc` on Windows, ensuring that `test_bpo20891` does not break profiling data (`python31*.pgc`).
* GH-81620: Add random.binomialvariate() (GH-94719)Raymond Hettinger2022-07-134-8/+175
|
* gh-94759: Create LCOV report with branch coverage (GH-94793)Christian Heimes2022-07-131-7/+8
|
* gh-93649: Fix linkage of _PyTestCapi_Init_Vectorcall (#94702)Oleg Iarygin2022-07-131-1/+1
|
* gh-94713 - Replacing while 1 with while True (#94714)Itay2022-07-131-1/+1
|
* Fix typo in _exact_ratio comment. (GH-94789)Benjamin Peterson2022-07-121-1/+1
|
* Fix heading levels for "Deprecated" section in What's New for 3.12 (GH-94762)Pradyun Gedam2022-07-121-2/+2
| | | | | | These headings were at the same level as the "Deprecated" heading, but likely intended to be a subheading within that section. Co-authored-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
* docs: typing.Self, fix typo (GH-94771)Max Zhenzhera2022-07-122-4/+4
| | | | | * fix typo - double spelled word 'use' * change methods names to the infinitive form
* gh-94773: deepfreeze: support frozensets with unsortable types (GH-94775)Christian Heimes2022-07-122-1/+8
|
* gh-94751: Install, import and run the test C++ extension (MVP) (GH-94754)Petr Viktorin2022-07-123-17/+56
| | | | | | | | | This is a quick-and-dirty way to run the C++ tests. It can definitely be improved in the future, but it should fail when things go wrong. - Run test functions on import (yes, this can definitely be improved) - Fudge setuptools metadata (name & version) to make the extension installable - Install and import the extension in test_cppext
* GH-94736: mark SemLock test as linux only (GH-94750)Kumar Aditya2022-07-111-0/+1
| | | | | | See https://buildbot.python.org/all/#/builders/172/builds/2522 The PR skips the test on non-linux platforms. Automerge-Triggered-By: GH:pablogsal
* bpo-45924: Fix asyncio incorrect traceback when future's exception is raised ↵Kumar Aditya2022-07-114-2/+47
| | | | multiple times (GH-30274)
* GH-94736: Fix _multiprocessing.SemLock subclassing (#94738)Kumar Aditya2022-07-113-4/+14
| | | | | | | | | * fix allocator and deallocator * 📜🤖 Added by blurb_it. * code review Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-93883: Fix some tests involving traceback formatting (#94737)John Belmonte2022-07-111-4/+0
| | | | PR #93994 was merged without being rebased in a few weeks, and some new test code using the old scheme passed through automatic merge.
* gh-87822: Make traceback module robust to exceptions from repr() of local ↵Simon-Martin Schröder2022-07-115-3/+14
| | | | values (GH-94691)
* gh-93883: elide traceback indicators when possible (#93994)John Belmonte2022-07-119-137/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gh-93883: elide traceback indicators when possible Elide traceback column indicators when the entire line of the frame is implicated. This reduces traceback length and draws even more attention to the remaining (very relevant) indicators. Example: ``` Traceback (most recent call last): File "query.py", line 99, in <module> bar() File "query.py", line 66, in bar foo() File "query.py", line 37, in foo magic_arithmetic('foo') File "query.py", line 18, in magic_arithmetic return add_counts(x) / 25 ^^^^^^^^^^^^^ File "query.py", line 24, in add_counts return 25 + query_user(user1) + query_user(user2) ^^^^^^^^^^^^^^^^^ File "query.py", line 32, in query_user return 1 + query_count(db, response['a']['b']['c']['user'], retry=True) ~~~~~~~~~~~~~~~~~~^^^^^ TypeError: 'NoneType' object is not subscriptable ``` Rather than going out of our way to provide indicator coverage in every traceback test suite, the indicator test suite should be responible for sufficient coverage (e.g. by adding a basic exception group test to ensure that margin strings are covered).
* Small speed-up for NormalDist.samples (GH-94730)Raymond Hettinger2022-07-111-1/+1
|
* gh-94309: Deprecate typing.Hashable/Sized (GH-94626)MonadChains2022-07-102-0/+10
| | | | | Deprecate typing.Hashable/Sized. Use the collections.abc counterparts directly instead. To be consistent with PEP 585, deprecated aliases will not raise any DeprecationWarning.
* GH-77265: Document NaN handling in statistics functions that sort or count ↵Raymond Hettinger2022-07-101-0/+29
| | | | | | | | | | | | | | | | | (#94676) * Document NaN handling in functions that sort or count * Update Doc/library/statistics.rst Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com> * Update Doc/library/statistics.rst Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com> * Fix trailing whitespace and rewrap text Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* GH-94694: Fix column offsets for multi-line method lookups (GH-94697)Brandt Bucher2022-07-104-2/+85
|
* Improve dataclass docstring (gh-94686)Tom Fryers2022-07-091-9/+8
|
* gh-94637: Release GIL in SSLContext.set_default_verify_paths (GH-94658)Christian Heimes2022-07-092-1/+8
|
* pycore_interp.h: Fix comment about pytypedefs.h (#93188)Itamar Ostricher2022-07-091-1/+1
| | | | GH-31527 moved this typedef to `Include/pytypedefs.h`, so this comment should point at the correct location
* gh-93649: Fix dependencies of _testcapi (#94695)Christian Heimes2022-07-093-1/+3
| | | | | - header files are located in $(srcdir) - dependencies must not list C files that are also in a makesetup Setup file - generate SRCDIRS for OOT builds
* gh-94700: Rewrite the logging.Formatter API ref in structured form (GH-94701)CAM Gerlach2022-07-091-43/+41
|
* gh-94607: Fix subclassing generics (GH-94610)Ken Jin2022-07-094-0/+38
| | | Co-authored-by: Serhiy Storchaka <3659035+serhiy-storchaka@users.noreply.github.com>
* GH-93252: Fix error handling for failed Python calls (GH-94693)Brandt Bucher2022-07-093-1/+19
|
* Increase test coverage of Objects/exceptions.c (GH-94674)Irit Katriel2022-07-082-5/+59
|
* GH-90699: Intern statically allocated strings (GH-93597)Kumar Aditya2022-07-083-4/+628
| | | This is similar to how strings are interned for deepfreeze.