summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* GH-74116: Allow multiple drain waiters for asyncio.StreamWriter (GH-94705)Kumar Aditya2022-08-293-19/+36
|
* Improve accuracy for Spearman's rank correlation coefficient. (#96392)Raymond Hettinger2022-08-291-3/+4
|
* gh-94682: Build and test with OpenSSL 1.1.1q (gh-94683)Christian Heimes2022-08-299-20/+27
|
* ast.parse: check `feature_version` common case first (GH-94640)Anthony Sottile2022-08-291-3/+3
|
* Fix Py_INCREF() statistics in limited C API 3.10 (#96120)Victor Stinner2022-08-291-1/+1
| | | | | In the limited C API with a debug build, Py_INCREF() is implemented by calling _Py_IncRef() which calls Py_INCREF(). Only call _Py_INCREF_STAT_INC() once.
* gh-90814: Correct NEWS wording re. optional C11 features (GH-96309)Petr Viktorin2022-08-292-2/+4
| | | | | | | | | | | The previous wording of this entry suggests that CPython won't work if optional compiler features are enabled. That's not the case. The change is that we require C11 rather than C89. Note that PEP 7 does say "Python 3.11 and newer versions use C11 without optional features." It is correct there: that's not a guide for users who compile Python, but for CPython devs who must avoid the features.
* gh-95432: Add doctests for the sqlite3 docs (#96225)Erlend E. Aasland2022-08-291-64/+125
| | | | | | | As a consequence of the added test, this commit also includes fixes for broken examples. - Add separate namespace for trace tests bco. module level callback - Move more backup and cursor examples under separate namespaces
* gh-96191: Update the configure file to use GitHub issue (gh-96211)Dong-hee Na2022-08-292-17/+17
|
* Prepare private _rank() function to be made public. (#96372)Raymond Hettinger2022-08-291-5/+15
|
* gh-96357: Improve `typing.get_overloads` coverage (#96358)Nikita Sobolev2022-08-291-0/+3
|
* gh-95950: Add a test for both `csv.Dialect` and `kwargs` (#95951)Nikita Sobolev2022-08-291-0/+28
|
* GH-96359: Fix docs that claim int(0|1) doesn't match False (GH-96361)Jonathan Oberländer2022-08-281-1/+1
|
* gh-69142: add %:z strftime format code (gh-95983)TW2022-08-285-55/+92
| | | | | | | | | | | | | | | | datetime.isoformat generates the tzoffset with colons, but there was no format code to make strftime output the same format. for simplicity and consistency the %:z formatting behaves mostly as %z, with the exception of adding colons. this includes the dynamic behaviour of adding seconds and microseconds only when needed (when not 0). this fixes the still open "generate" part of this issue: https://github.com/python/cpython/issues/69142 Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-90467: StreamReaderProtocol - add strong reference to created task (#96323)Kirill2022-08-273-1/+7
|
* gh-89047: Fix msecs computation so you never end up with 1000 msecs. (GH-96340)Vinay Sajip2022-08-272-1/+9
|
* gh-92007: Handle elevation errors in NTEventLogHandler more grace… (GH-96322)Vinay Sajip2022-08-271-1/+10
|
* fixes gh-96292: Fix Trivial Typo in cpython/Modules/atexitmodule.c (#96327)Ansab Gillani2022-08-271-1/+1
|
* fix threading.Event.isSet() docstring (#96297)Daniel Giger2022-08-271-1/+1
| | | fixes gh-96296
* Docs: Fix count of bullets in asyncio-task.rst (#96307)zhanpon2022-08-271-1/+1
|
* gh-95973: Add a new --with-dsymutil option to link debug information in ↵Pablo Galindo Salgado2022-08-275-8/+160
| | | | | macOS (GH-95974) Automerge-Triggered-By: GH:pablogsal
* gh-77116: Add SMTP buffering example to logging cookbook. (GH-96324)Vinay Sajip2022-08-261-0/+82
|
* gh-96280: suppress deprecation warning in test_importlib (GH-96281)Irit Katriel2022-08-261-1/+3
|
* Fix documentation typo for pathlib.Path.walk (GH-96301)Ansab Gillani2022-08-261-1/+1
|
* gh-95994: Clarify escaped newlines. (#96066)Ezio Melotti2022-08-261-11/+22
| | | | | | | | | | | | | * gh-95994: clarify escaped newlines. * Rephrase ambiguous sentence. Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> * Use `<newline>` in escape sequences table. Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* GH-96172 fix unicodedata.east_asian_width being wrong on unassigned code ↵Carl Friedrich Bolz-Tereick2022-08-264-548/+614
| | | | points (#96207)
* bpo-33587: inspect.getsource: reorder stat on file in linecache (GH-6805)Pankaj Pandey2022-08-261-3/+3
| | | | | | | | | | * inspect.getsource: avoid stat on file in linecache The check for os.path.exists() on source file is postponed in inspect.getsourcefile() until needed avoiding an expensive filesystem stat call and PEP 302 module loader check is moved last for performance since it is an uncommon case.
* Port regression test for issue GH-93592 (GH-96208)Kristján Valur Jónsson2022-08-261-0/+24
|
* gh-96269: Fix build dependency on AIX (GH-96304)Christian Heimes2022-08-263-1/+6
|
* gh-96197: Define the behavior of repr if sys.displayhook is lost (gh-96242)Dong-hee Na2022-08-261-0/+2
|
* gh-96197: Fix expression when :func:`sys.breakpointhook is missing (gh-96293)Dong-hee Na2022-08-261-1/+1
|
* gh-90110: Update the c-analyzer Tool (gh-96255)Eric Snow2022-08-254-1534/+84
| | | Here we automatically ignore uses of _PyArg_Parser, "kwlist" arrays, and module/type defs. That way new uses don't trigger false positives in the c-analyzer check script.
* gh-96276: suppress SyntaxWarning in test_compile (GH-96277)Irit Katriel2022-08-251-1/+4
|
* bpo-46744: Support "-Win32" and make platform flags case insensitive in ↵conioh2022-08-252-30/+32
| | | | Windows build scripts. (GH-31803)
* gh-96272: Replace `test_source_encoding`'s `test_pep263` with ↵Michael Droettboom2022-08-252-15/+10
| | | | | | | | | | | | `test_import_encoded_module` from `test_imp` (GH-96275) Editors don't agree that `test_source_encoding.py` was valid koi8-r, making it hard to edit that file without the editor breaking it in some way (see gh-96272). Only one test actually relied on the koi8-r encoding and it was a duplicate of a test from the deprecated `imp` module's `test_imp`, so here we replace `test_pep263` with `test_import_encoded_module` stolen from `test_imp` and set `test_source_encoding.py`'s encoding to utf-8 to make editing it easier going forward.
* Clarify API stability of PyTypeObject in relation to static types. (GH-96217)ov2k2022-08-251-3/+3
| | | | | | | Fixes: https://github.com/python/cpython/issues/95300 Related: https://github.com/python/cpython/issues/91271
* gh-92445 Improve interaction between nargs="*" and choices() (GH-92565)Harry2022-08-253-1/+13
|
* gh-76728: Coerce DictReader and DictWriter fieldnames argument to a list ↵Sam Ezeh2022-08-254-0/+37
| | | | (GH-32225)
* GH-96237: Allow non-functions as reference-holder in frames. (GH-96238)Mark Shannon2022-08-256-13/+26
|
* gh-91070: Add note about SysLogHandler on macOS 12.x (Monterey). (GH-94803)Vinay Sajip2022-08-251-0/+6
|
* gh-95243: Mitigate the race condition in testSockName (#96173)Ross Burton2022-08-252-2/+16
| | | | | | | | find_unused_port() has an inherent race condition, but we can't use bind_port() as that uses .getsockname() which this test is exercising. Try binding to unused ports a few times before failing. Signed-off-by: Ross Burton <ross.burton@arm.com>
* GH-93503: Add thread-specific APIs to set profiling and tracing functions in ↵Pablo Galindo Salgado2022-08-2410-4/+271
| | | | | | | | | | | | | | | | | the C-API (#93504) * gh-93503: Add APIs to set profiling and tracing functions in all threads in the C-API * Use a separate API * Fix NEWS entry * Add locks around the loop * Document ignoring exceptions * Use the new APIs in the sys module * Update docs
* Add gvanrossum to asyncio experts (#96248)Guido van Rossum2022-08-241-1/+1
|
* gh-87092: use basicblock_last_instr consistently in the compiler (GH-96243)Irit Katriel2022-08-241-29/+32
|
* GH-96179: Fix misleading example on the bisect documentation (GH-96228)prego2022-08-242-1/+2
| | | | The `movies[bisect(movies, 1960, key=by_year)]` will actually return only movies **after** 1960.
* gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost ↵Dong-hee Na2022-08-241-0/+2
| | | | (gh-96231)
* GH-96177: Move GIL and eval breaker code out of ceval.c into ceval_gil.c. ↵Mark Shannon2022-08-2412-985/+1005
| | | | (GH-96204)
* gh-96021: Explicitly close the IsolatedAsyncioTestCase runner in tests ↵Serhiy Storchaka2022-08-241-2/+7
| | | | | | | | | (GH-96135) Tests for IsolatedAsyncioTestCase.debug() rely on the runner be closed in __del__. It makes tests depending on the GC an unreliable on other implementations. It is better to close the runner explicitly even if currently there is no a public API for this.
* gh-93678: add _testinternalcapi.optimize_cfg() and test utils for compiler ↵Irit Katriel2022-08-249-49/+496
| | | | optimization unit tests (GH-96007)
* gh-94635: Frame sqlite3 how-to headings as such & move default adapters to ↵C.A.M. Gerlach2022-08-241-48/+48
| | | | | | reference (#96136) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* GH-96145: Add AttrDict to JSON module for use with object_hook (#96146)Raymond Hettinger2022-08-235-1/+241
|