summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* gh-106909: Use role :const: for referencing module constants (GH-106910)Serhiy Storchaka2023-07-2164-238/+238
|
* gh-106892: Use roles :data: and :const: for referencing module variables ↵Serhiy Storchaka2023-07-2140-111/+111
| | | | (GH-106894)
* gh-47146: Fix reference counting in _testcapi.structmember initializer ↵Serhiy Storchaka2023-07-211-1/+1
| | | | (GH-106862)
* gh-106919: Use role :c:macro: for referencing the C "constants" (GH-106920)Serhiy Storchaka2023-07-2147-294/+312
|
* Docs: Argument Clinic: Add Background and Tutorial top-level sections (#106904)Erlend E. Aasland2023-07-211-9/+27
| | | | | | | | | | | | | | | | | | | | | Add Background as a toplevel section with the following subsections: - Background - The goals of Argument Clinic - Basic concepts and usage Rename "Converting your first function" to Tutorial. Add anchors for Background, Tutorial, and How-to Guides: - :ref:`clinic-background` - :ref:`clinic-tutorial` - :ref:`clinic-howtos` Link to these from within the Abstract. Break the compatibility paragraph out of Abstract and make it a note. Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-106368: Increase Argument Clinic test coverage for IndentStack (#106933)Erlend E. Aasland2023-07-211-0/+19
|
* gh-106916: Add missing error check _PyCompile_CleanDoc (#106921)Kirill Podoprigora2023-07-211-0/+6
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-106669: Revert "gh-102988: Detect email address parsing errors ... ↵Gregory P. Smith2023-07-215-171/+30
| | | | | | | | (#105127)" (#106733) This reverts commit 18dfbd035775c15533d13a98e56b1d2bf5c65f00. Adds a regression test from the issue. See https://github.com/python/cpython/issues/106669.
* gh-104050: Argument Clinic: Annotate the IndentStack class (#106934)Erlend E. Aasland2023-07-201-5/+5
|
* gh-105540: Show source files relative to root (#106927)Guido van Rossum2023-07-201-4/+10
| | | This restores a corner case: when the generator is run with working directory set to Tools/cases_generator, the source filenames listed in the generated provenance header should be relative to the repo root directory.
* Fix typo in tkinter docs (#106936)Makonede2023-07-201-1/+1
| | | Signed-off-by: Makonede <61922615+Makonede@users.noreply.github.com>
* gh-104050: Argument Clinic: Increase CConverter typing coverage (#106932)Erlend E. Aasland2023-07-201-13/+16
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104050: Argument Clinic: Annotate CLanguage.render_option_group_parsing() ↵Erlend E. Aasland2023-07-201-14/+20
| | | | | (#106929) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-106701: Move _PyUopExecute to Python/executor.c (GH-106924)Brandt Bucher2023-07-2013-247/+276
|
* gh-105481: do not auto-generate pycore_intrinsics.h (#106913)Irit Katriel2023-07-2011-91/+174
|
* GH-104584: Miscellaneous fixes for -Xuops (GH-106908)Brandt Bucher2023-07-2010-18/+67
|