summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-54738: Add argparse i18n howto (#104562)Tomas R2023-07-233-0/+55
|
* gh-71261: Add paragraph on shadowing submodules with star imports (#107004)wulmer2023-07-231-0/+16
|
* gh-107017: removed mention that C does it the same way (#107020)Jakub Červinka2023-07-231-8/+15
|
* gh-102111: Add link to string escape sequences in re module (#106995)wulmer2023-07-232-2/+6
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-82500: Fix asyncio sendfile overflow on 32bit (#107056)J. Nick Koston2023-07-232-0/+4
|
* gh-107082: Remove debug hack from get_first_executor in test_capi.test_misc ↵Guido van Rossum2023-07-231-1/+1
| | | | | (#107085) (Even though it doesn't look like it fixes gh-107082 -- see discussion there -- it still removes debug code that should never have been committed.)
* gh-106962: Detect mpicc in configure.ac (#106961)Lukas van de Wiel2023-07-223-0/+7
| | | | Don't let autoconf mistake MPI compilers for Intel compilers; filter out the MPI case to prevent Intel specific options from being applied.
* gh-104050: Argument Clinic: Increase typing coverage (#107074)Erlend E. Aasland2023-07-221-13/+22
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-106320: Remove _PyFunction_Vectorcall() API (#107071)Victor Stinner2023-07-223-6/+7
| | | | Move _PyFunction_Vectorcall() API to the internal C API. No longer export the function.
* gh-106320: Remove private _PyModule API (#107070)Victor Stinner2023-07-222-11/+6
| | | | | | | | | | | Move private _PyModule API to the internal C API (pycore_moduleobject.h): * _PyModule_Clear() * _PyModule_ClearDict() * _PyModuleSpec_IsInitializing() * _PyModule_IsExtension() No longer export these functions.
* GH-103082: Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS (#107069)Victor Stinner2023-07-225-29/+29
| | | | | | Rename private C API constants: * Rename PY_MONITORING_UNGROUPED_EVENTS to _PY_MONITORING_UNGROUPED_EVENTS * Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS
* gh-106527: asyncio: optimize to add/remove readers and writers (#106528)J. Nick Koston2023-07-223-53/+48
|
* gh-106320: Move _PyMethodWrapper_Type to internal C API (#107064)Victor Stinner2023-07-225-5/+6
|
* gh-107028: tiny textual changes in logging docs and docstrings (GH-107029)Jochem Boersma2023-07-222-5/+6
|
* gh-106320: Remove private _PyInterpreterID C API (#107053)Victor Stinner2023-07-2212-46/+40
| | | | | | | Move the private _PyInterpreterID C API to the internal C API: add a new pycore_interp_id.h header file. Remove Include/interpreteridobject.h and Include/cpython/interpreteridobject.h header files.
* gh-106948: Add standard external names to nitpick_ignore (GH-106949)Serhiy Storchaka2023-07-2222-53/+99
| | | | | It includes standard C types, macros and variables like "size_t", "LONG_MAX" and "errno", and standard environment variables like "PATH".
* gh-107008: Document the curses module variables LINES and COLS (GH-107011)Serhiy Storchaka2023-07-223-3/+23
| | | | LINES and COLS referred in curses.update_lines_cols() documentations are the module variables, not the environment variables.
* gh-106320: Remove _Py_SwappedOp from the C API (#107036)Victor Stinner2023-07-223-6/+4
| | | Move _Py_SwappedOp to the internal C API (pycore_object.h).
* gh-75371: reformat Makefile.pre.in to accommodate for empty ↵Moritz Neeb2023-07-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | FRAMEWORKALTINSTALLLAST (#107035) in the case of an empty FRAMEWORKALTINSTALLLAST, this patch prevents leaving an astray linebreak and two tabs in the resulting Makefile. Before change: ``` .PHONY: commoninstall commoninstall: check-clean-src \ altbininstall libinstall inclinstall libainstall \ sharedinstall altmaninstall \ ``` After change (with empty FRAMEWORKALTINSTALLLAST): ``` .PHONY: commoninstall commoninstall: check-clean-src \ altbininstall libinstall inclinstall libainstall \ sharedinstall altmaninstall ```
* gh-83006: Document behavior of `shutil.disk_usage` for non-mounted ↵Matthieu Caneill2023-07-222-0/+8
| | | | filesystems on Unix (#107031)
* Fix Sphinx warnings in `re` module docs (#107044)wulmer2023-07-222-6/+18
|
* gh-106320: Move private _PySet API to the internal API (#107041)Victor Stinner2023-07-2218-16/+53
| | | | | | | | * Add pycore_setobject.h header file. * Move the following API to the internal C API: * _PySet_Dummy * _PySet_NextEntry() * _PySet_Update()
* gh-106967: remove Release and Date fields from whatsnew for 3.12 and 3.13 ↵Oliver Rew2023-07-222-4/+2
| | | | (#107000)
* gh-65495: Use lowercase `mail from` and `rcpt to` in `smtplib.SMTP` (#107019)Matthieu Caneill2023-07-223-2/+17
| | | | | | Use lowercase `mail from` and `rcpt to` in `smtplib.SMTP` SMTP commands are case-insensitive. `smtplib` uses lowercase commands, however it writes `mail FROM` and `rcpt TO`, lacking consistency.
* gh-106320: Remove _PyOS_ReadlineTState API (#107034)Victor Stinner2023-07-223-2/+6
| | | | Remove _PyOS_ReadlineTState variable from the public C API. The symbol is still exported for the readline shared extension.
* gh-105090: Replace incorrect TLSv1.2 with TLSv1.3 (#105404)Jocelyn Castellano2023-07-221-1/+1
|
* gh-106320: Move private _PyGen API to the internal C API (#107032)Victor Stinner2023-07-222-6/+11
| | | | | | | | | | | | | Move private _PyGen API to internal C API: * _PyAsyncGenAThrow_Type * _PyAsyncGenWrappedValue_Type * _PyCoroWrapper_Type * _PyGen_FetchStopIterationValue() * _PyGen_Finalize() * _PyGen_SetStopIterationValue() No longer these symbols, except of the ones by the _asyncio shared extensions.
* gh-106320: Move _PyNone_Type to the internal C API (#107030)Victor Stinner2023-07-223-3/+5
| | | | Move private types _PyNone_Type and _PyNotImplemented_Type to internal C API.
* gh-106320: Move private _PyHash API to the internal C API (#107026)Victor Stinner2023-07-228-87/+94
| | | | | * No longer export most private _PyHash symbols, only export the ones which are needed by shared extensions. * Modules/_xxtestfuzz/fuzzer.c now uses the internal C API.
* gh-106320: Document private C API removal in What's New 3.13 (#107027)Victor Stinner2023-07-221-0/+7
|
* gh-69714: Make `calendar` module fully tested (#93655)Bart Skowron2023-07-224-54/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are 3 paths to use `locale` argument in `calendar.Locale{Text|HTML}Calendar.__init__(..., locale=None)`: (1) `locale=None` -- denotes the "default locale"[1] (2) `locale=""` -- denotes the native environment (3) `locale=other_valid_locale` -- denotes a custom locale So far case (2) is covered and case (1) is in 78935daf5a (same branch). This commit adds a remaining case (3). [1] In the current implementation, this translates into the following approach: GET current locale IF current locale == "C" THEN SET current locale TO "" GET current locale ENDIF * Remove unreachable code (and increase test coverage) This condition cannot be true. `_locale.setlocale()` from the C module raises `locale.Error` instead of returning `None` for `different_locale.__enter__` (where `self.oldlocale` is set). * Expand the try clause to calls to `LocaleTextCalendar.formatmonthname()`. This method temporarily changes the current locale to the given locale, so `_locale.setlocale()` may raise `local.Error`. Co-authored-by: Rohit Mediratta <rohitm@gmail.com> Co-authored-by: Jessica McKellar <jesstess@mit.edu> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* gh-106320: Remove private _PyUnicode_AsString() alias (#107021)Victor Stinner2023-07-222-5/+5
| | | | | | | | Remove private _PyUnicode_AsString() alias to PyUnicode_AsUTF8(). It was kept for backward compatibility with Python 3.0 - 3.2. The PyUnicode_AsUTF8() is available since Python 3.3. The PyUnicode_AsUTF8String() function can be used to keep compatibility with Python 3.2 and older.
* gh-106989: Remove tok report warnings (#106993)Menelaos Kotoglou2023-07-222-6/+0
|
* gh-105699: Add some stress tests for subinterpreter creation (#106966)Eric Snow2023-07-221-0/+22
|
* Reformat code block to make it easier to read (#106965)Joe Kaufeld2023-07-221-5/+14
|
* gh-106714: Fix test_capi to not write a coredump (#107007)Victor Stinner2023-07-222-3/+12
| | | | test_capi: Fix test_no_FatalError_infinite_loop() to no longer write a coredump, by using test.support.SuppressCrashReport.
* gh-106969: Indicate no modules were added in 3.10 & 3.12 (#106988)Sebastiaan Zeeff2023-07-222-2/+2
| | | | | | | | | The "New Modules" section was left in place to ensure that the anchor link for new modules will still exist: /whatsnew/3.12.html#new-modules /whatsnew/3.10.html#new-modules This means that existing links to this section don't break.
* gh-104050: Argument Clinic: Annotate the BufferSeries class (#106935)Erlend E. Aasland2023-07-221-5/+5
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-106996: Amend the introduction to the turtle graphics documentation (#106997)Daniele Procida2023-07-221-3/+21
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-106978: Bump sphinx-lint to 0.6.8 (#106990)Sven Arends2023-07-221-1/+1
|
* gh-106368: Increase coverage for Argument Clinic output directive (#106979)Erlend E. Aasland2023-07-221-0/+53
|
* gh-106976:alphabetise bullets by module name task1 (#106982)littlebutt's workshop2023-07-221-25/+28
|
* gh-106973: Change non-integral to non-integer in "3.12 What's New" (#106984)Sebastiaan Zeeff2023-07-221-1/+1
|
* gh-101100: Docs: Check Sphinx warnings and fail if improved (#106460)Hugo van Kemenade2023-07-225-116/+161
|
* gh-106970: Fix Argument Clinic 'destination <name> clear' command (#106972)Erlend E. Aasland2023-07-224-8/+77
| | | | | | | | | | Add test for the 'destination <name> clear' command, and the 'destination' directive in general. Fix two bugs in 'destination <name> clear' command: 1. The text attribute of the allocator is called 'text', not '_text' 2. Return after processing the 'clear' command, instead of proceeding directly to the fail().
* gh-96663: Add a better error message for __dict__-less classes setattr (#103232)James Hilton-Balfe2023-07-224-5/+32
|
* gh-106004: Add PyDict_GetItemRef() function (#106005)Victor Stinner2023-07-2110-18/+308
| | | | | * Add PyDict_GetItemRef() and PyDict_GetItemStringRef() functions. Add these functions to the stable ABI version 3.13. * Add unit tests on the PyDict C API in test_capi.
* gh-105699: Fix a Crasher Related to a Deprecated Global Variable (gh-106923)Eric Snow2023-07-212-4/+11
| | | There was a slight race in _Py_ClearFileSystemEncoding() (when called from _Py_SetFileSystemEncoding()), between freeing the value and setting the variable to NULL, which occasionally caused crashes when multiple isolated interpreters were used. (Notably, I saw at least 10 different, seemingly unrelated spooky-action-at-a-distance, ways this crashed. Yay, free threading!) We avoid the problem by only setting the global variables with the main interpreter (i.e. runtime init).
* gh-105699: Fix an Interned Strings Crasher (gh-106930)Eric Snow2023-07-212-1/+15
| | | | | | | A static (process-global) str object must only have its "interned" state cleared when no longer interned in any interpreters. They are the only ones that can be shared by interpreters so we don't have to worry about any other str objects. We trigger clearing the state with the main interpreter, since no other interpreters may exist at that point and _PyUnicode_ClearInterned() is only called during interpreter finalization. We do not address here the fact that a string will only be interned in the first interpreter that interns it. In any subsequent interpreters str.state.interned is already set so _PyUnicode_InternInPlace() will skip it. That needs to be addressed separately from fixing the crasher.
* gh-106847: Add -X warn_default_encoding in sys.flags Doc (#106854)qqwqqw6892023-07-211-21/+25
| | | Co-authored-by: Nikita Sobolev <mail@sobolevn.me>