summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update name in acknowledgements and add mailmap (#103696)Amethyst Reese2023-04-302-1/+4
| | | | | | | | I changed my name last year, and would like to update my name in the acknowledgements and git history accordingly. git-mailmap reference: https://git-scm.com/docs/gitmailmap Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-82054: allow test runner to split test_asyncio to execute in parallel by ↵Joshua Herman2023-04-301-3/+16
| | | | | | | | | | | | | | | | | | | | | | | sharding. (#103927) This runs test_asyncio sub-tests in parallel using sharding from Cinder. This suite is typically the longest-pole in runs because it is a test package with a lot of further sub-tests otherwise run serially. By breaking out the sub-tests as independent modules we can run a lot more in parallel. After porting we can see the direct impact on a multicore system. Without this change: Running make test is 5 min 26 seconds With this change: Running make test takes 3 min 39 seconds That'll vary based on system and parallelism. On a `-j 4` run similar to what CI and buildbot systems often do, it reduced the overall test suite completion latency by 10%. The drawbacks are that this implementation is hacky and due to the sorting of the tests it obscures when the asyncio tests occur and involves changing CPython test infrastructure but, the wall time saved it is worth it, especially in low-core count CI runs as it pulls a long tail. The win for productivity and reserved CI resource usage is significant. Future tests that deserve to be refactored into split up suites to benefit from are test_concurrent_futures and the way the _test_multiprocessing suite gets run for all start methods. As exposed by passing the -o flag to python -m test to get a list of the 10 longest running tests. --------- Co-authored-by: Carl Meyer <carl@oddbird.net> Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google, LLC]
* Remove non-existing tools from Sundry skiplist (#103991)Oleg Iarygin2023-04-291-9/+2
|
* gh-103793: Defer formatting task name (#103767)Itamar Ostricher2023-04-294-2/+29
| | | | | | | | | | | | | The default task name is "Task-<counter>" (if no name is passed in during Task creation). This is initialized in `Task.__init__` (C impl) using string formatting, which can be quite slow. Actually using the task name in real world code is not very common, so this is wasted init. Let's defer this string formatting to the first time the name is read (in `get_name` impl), so we don't need to pay the string formatting cost if the task name is never read. We don't change the order in which tasks are assigned numbers (if they are) -- the number is set on task creation, as a PyLong instead of a formatted string. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-87092: change assembler to use instruction sequence instead of CFG (#103933)Irit Katriel2023-04-295-80/+92
|
* gh-103636: issue warning for deprecated calendar constants (#103833)Prince Roshan2023-04-295-0/+84
| | | | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* Various small fixes to dis docs (#103923)Jelle Zijlstra2023-04-291-78/+79
| | | | | | | | - Fix description of MAKE_CELL, which appeared to be inverted from the actual behavior - Fix stray ".:" (sphinx-contrib/sphinx-lint#63) - Fix inconsistent indentation - Add some missing code blocks - Slight style improvements
* GH-103082: Code cleanup in instrumentation code (#103474)Mark Shannon2023-04-294-39/+42
|
* gh-98040: Remove just the `imp` module (#98573)Barry Warsaw2023-04-2824-1538/+41
|
* GH-103971: Forward-port test from GH-103980 (GH-103984)Tian Gao2023-04-281-0/+13
|
* GH-103944: Check error status when raising DeprecationWarning (#103949)Paul Ganssle2023-04-281-12/+12
|
* gh-103978: avoid using 'class' as an identifier (#103979)Carl Meyer2023-04-282-4/+4
|
* gh-101100: Add reference doc for __post_init__ (#103818)Olga Matoula2023-04-281-22/+23
| | | Signed-off-by: Olga Matoula <olgamatoula@gmail.com>
* Update itertool recipe: polynomial_from_roots() (GH-103973)Raymond Hettinger2023-04-281-5/+4
|
* GH-103804: Add test for dis.disco (#103901)Juhi Chandalia2023-04-281-0/+7
|
* gh-100021: Document that sqlite3's executemany() discards resulting rows ↵Erlend E. Aasland2023-04-281-2/+9
| | | | (#103939)
* Fix typo in math.log docstring (#103943)Wes Turner2023-04-281-1/+1
|
* gh-83925: Make asyncio.subprocess communicate similar to non-asyncio (#18650)Marek Marczykowski-Górecki2023-04-284-7/+32
| | | | | | | subprocess's communicate(None) closes stdin of the child process, after sending no (extra) data. Make asyncio variant do the same. This fixes issues with processes that waits for EOF on stdin before continuing.
* gh-94673: Fix _PyTypes_InitTypes() and get_type_attr_as_size() (gh-103961)Eric Snow2023-04-282-4/+1
| | | | | | This change has two small parts: 1. a follow-up to gh-103940 with one case I missed 2. adding a missing return that I noticed while working on related code
* gh-94673: Ensure Builtin Static Types are Readied Properly (gh-103940)Eric Snow2023-04-2721-168/+88
| | | There were cases where we do unnecessary work for builtin static types. This also simplifies some work necessary for a per-interpreter GIL.
* gh-102628: Fix sqlite3 CLI prompt in IDLE on Windows (#103945)Erlend E. Aasland2023-04-271-1/+4
|
* Docs: fix dunders with too many underscores (#103955)Erlend E. Aasland2023-04-272-2/+2
|
* gh-103935: Use `io.open_code()` when executing code in trace and profile ↵Tian Gao2023-04-274-3/+7
| | | | modules (GH-103947)
* gh-98822: Add missing test directories to TESTSUBDIRS (#103942)Erlend E. Aasland2023-04-271-12/+45
|
* gh-87092: update CODEOWNERS for split of compile.c to 3 files (#103941)Irit Katriel2023-04-271-0/+2
|
* gh-102628: Fix sqlite3 CLI prompt for Windows console users (#103898)Erlend E. Aasland2023-04-272-1/+4
| | | | The prompt will still be incorrect in IDLE on Windows, as IDLE uses CTRL-D for EOF on all platforms.
* GH-103903: Test the minimum Sphinx version in CI (#103904)Adam Turner2023-04-274-5/+64
|
* GH-103857: Deprecate utcnow and utcfromtimestamp (#103858)Paul Ganssle2023-04-2710-34/+101
| | | | | Using `datetime.datetime.utcnow()` and `datetime.datetime.utcfromtimestamp()` will now raise a `DeprecationWarning`. We also have removed our internal uses of these functions and documented the change.
* GH-90750: Use datetime.fromisocalendar in _strptime (#103802)Paul Ganssle2023-04-273-19/+19
| | | | | | Use datetime.fromisocalendar in _strptime This unifies the ISO → Gregorian conversion logic and improves handling of invalid ISO weeks.
* gh-102765: Update ntpath.isdir/isfile/islink/exists to use ↵Finn Womack2023-04-272-118/+209
| | | | GetFileInformationByName when available (GH-103485)
* gh-103583: Isolate CJK codec modules (#103869)Erlend E. Aasland2023-04-279-226/+228
|
* gh-103092: Isolate _ctypes, part 1 (#103893)Erlend E. Aasland2023-04-277-201/+229
| | | | | | | | | Establish global state and port the following types to heap types: - DictRemover_Type - PyCArg_Type - PyCThunk_Type - PyCField_Type - StructParam_Type
* gh-103590: do not wrap a single exception raised from a try-except* (#103665)Irit Katriel2023-04-274-25/+32
|
* gh-103607: Fix `pause_reading` to work when called from `connection_made` in ↵Itayazolay2023-04-275-24/+62
| | | | | `asyncio`. (#17425) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-103880: Fix `assertRaises` usage in `test_genericalias` (GH-103916)Nikita Sobolev2023-04-271-0/+3
|
* gh-103883: Doc: Move PyUnicode_FromObject doc (#103913)Inada Naoki2023-04-271-9/+9
| | | This API is one of Unicode creator APIs.
* gh-89415: Add source-specific multicast constants to socket module (#103684)Reese Hyde2023-04-272-0/+14
| | | | | Add socket options for source-specific multicast when present as C #defines. Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
* gh-103656: Transfer f-string buffers to parser to avoid use-after-free ↵Lysandros Nikolaou2023-04-279-66/+146
| | | | | (GH-103896) Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* gh-62432: unittest runner: Exit code 5 if no tests were run (#102051)Stefano Rivera2023-04-278-22/+64
| | | | | | | | As discussed in https://discuss.python.org/t/unittest-fail-if-zero-tests-were-discovered/21498/7 It is common for test runner misconfiguration to fail to find any tests, This should be an error. Fixes: #62432
* gh-103629: Update typing.Unpack docs in compliance with PEP 692 (#103894)Franek Magiera2023-04-263-2/+58
|
* gh-60436: fix curses textbox backspace/del (#103783)Aidan Melen2023-04-263-2/+77
| | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Michael Blahay <mblahay@gmail.com>
* gh-48241: Clarify URL needs to be encoded when provided to urlopen and ↵Michael Blahay2023-04-262-3/+4
| | | | | | Request (#103855) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* Update MAC_address wikipedia URL in comments (#29019)1809092023-04-261-2/+2
|
* gh-103884: Docs CI: Only attempt nit-picky PR annotations for PRs (#103889)Hugo van Kemenade2023-04-261-0/+2
|
* gh-103489: Add get/set config methods to sqlite3.Connection (#103506)Erlend E. Aasland2023-04-267-1/+329
|
* gh-103015: Add entrypoint keyword param to sqlite3.Connection.load_extension ↵Erlend E. Aasland2023-04-269-14/+104
| | | | (#103073)
* gh-101879: docs - italicize argument in smtplib.SMPT() description (#101886)Owain Davies2023-04-261-5/+5
|
* gh-91441: Clarify the docs of asyncio.loop.subprocess_exec() (#91442)July Tikhonov2023-04-261-9/+8
| | | | | | | | Clarify the docs of asyncio.loop.subprocess_exec() Clarify the documentation of stdin, stdout and stderr arguments of asyncio.loop.subprocess_exec(). Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* GH-99944: Make dis display the value of oparg of KW_NAMES (#103856)Juhi Chandalia2023-04-263-3/+27
| | | | Co-authored-by: chilaxan <chilaxan@gmail.com>
* Add willingc to CODEOWNERS for asyncio (#103885)Carol Willing2023-04-261-1/+1
|