Nice Zombies
73906d5c90
gh-117360: Clearer wording in os.path.lexists() docs ( #117679 )
...
Co-authored-by: Zachary Ware <zach@python.org>
2024-04-09 23:00:41 +02:00
Nice Zombies
a05068db0c
gh-117597: Clarify exception handling in the tutorial ( #117681 )
2024-04-09 20:59:45 +00:00
Victor Stinner
a25c02eaf0
Revert "gh-106023: Update What's New in 3.13: _PyObject_FastCall() ( #117633 )" ( #117676 )
...
This reverts commit 9a12f5d1c1 .
I was wrong: the _PyObject_FastCall() function was removed. But we
kept the _PyObject_FastCallDict() function.
2024-04-09 18:26:35 +02:00
Guido van Rossum
fa58e75a86
gh-116720: Fix corner cases of taskgroups ( #117407 )
...
This prevents external cancellations of a task group's parent task to
be dropped when an internal cancellation happens at the same time.
Also strengthen the semantics of uncancel() to clear self._must_cancel
when the cancellation count reaches zero.
Co-Authored-By: Tin Tvrtković <tinchester@gmail.com>
Co-Authored-By: Arthur Tacca
2024-04-09 08:17:28 -07:00
Jelle Zijlstra
f2132fcd2a
gh-117516: Implement typing.TypeIs ( #117517 )
...
See PEP 742.
Co-authored-by: Carl Meyer <carl@oddbird.net>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-04-09 10:50:37 +00:00
Bruce Merry
775912a51d
gh-81322: support multiple separators in StreamReader.readuntil ( #16429 )
2024-04-08 09:58:02 -07:00
Serhiy Storchaka
24a2bd0481
gh-117642: Fix PEP 737 implementation (GH-117643)
...
* Fix implementation of %#T and %#N (they were implemented as %T# and
%N#).
* Restore tests removed in gh-116417.
2024-04-08 16:27:25 +00:00
Laurie O
e16062dd34
gh-96471: Correct documentation for asyncio queue shutdown ( #117621 )
2024-04-08 14:50:54 +00:00
Victor Stinner
9a12f5d1c1
gh-106023: Update What's New in 3.13: _PyObject_FastCall() ( #117633 )
...
The function _PyObject_FastCall() was restored.
2024-04-08 12:19:43 +00:00
Nikita Sobolev
a7702663e3
gh-111726: Explicitly close database connections in sqlite3 doctests ( #111730 )
...
Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-04-08 09:29:47 +00:00
Erlend E. Aasland
e338e1a4ec
gh-111726: Remove some doctests from sqlite3 docs ( #117623 )
...
* remove load extension doctest since we cannot skip it conditionally
* remove sys.unraisablehook example; using unraisable hooks is not "an
improved debug experience"
2024-04-08 08:11:08 +00:00
Hugo van Kemenade
a453f5ef9d
gh-111726: Cleanup test files after running sqlite3 doctest ( #117604 )
...
Remove all temporary databases in a dedicated 'testcleanup' step
at the end of the file.
2024-04-08 08:35:48 +02:00
Anita Hammer
fd3679025d
Fix reference in code.rst ( #117615 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-04-07 22:58:57 +00:00
Laurie O
df4d84c3cd
gh-96471: Add asyncio queue shutdown ( #104228 )
...
Co-authored-by: Duprat <yduprat@gmail.com>
2024-04-06 07:27:13 -07:00
Barney Gale
6150bb2412
GH-77609: Add recurse_symlinks argument to pathlib.Path.glob() ( #117311 )
...
Replace tri-state `follow_symlinks` with boolean `recurse_symlinks` argument. The new argument controls whether symlinks are followed when expanding recursive `**` wildcards. The possible argument values correspond as follows:
follow_symlinks recurse_symlinks
=============== ================
False N/A
None False
True True
We therefore drop support for not following symlinks when expanding non-recursive pattern parts; it wasn't requested in the original issue, and it's a feature not found in any shells.
This makes the API a easier to grok by eliminating `None` as an option.
No news blurb as `follow_symlinks` was new in 3.13.
2024-04-05 18:51:54 +00:00
Steve Dower
687616877b
gh-111140: PyLong_From/AsNativeBytes: Take *flags* rather than just *endianness* (GH-116053)
2024-04-05 16:21:16 +02:00
Petr Viktorin
9ceaee74db
gh-116608: importlib.resources: Un-deprecate functional API & add subdirectory support (GH-116609)
2024-04-05 13:55:59 +02:00
Sam Gross
42205143f8
gh-117478: Add @support.requires_gil_enabled decorator ( #117479 )
...
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
2024-04-04 14:10:46 -04:00
Vinay Sajip
df912c913a
[doc] Update logging documentation to improve grammar and elucidate an example. (GH-117541)
2024-04-04 13:14:44 +01:00
Zackery Spytz
fc5f68e58e
gh-59215: unittest: restore _top_level_dir at end of discovery (GH-15242)
2024-04-03 16:17:13 +02:00
Gregory P. Smith
33ee5cb3e9
GH-70647: Deprecate strptime day of month parsing without a year present to avoid leap-year bugs (GH-117107)
2024-04-03 14:19:49 +02:00
Petr Viktorin
e569f9132b
gh-117074: Update Traversable.joinpath docs to the 3.11+ protocol (GH-117113)
2024-04-02 16:08:16 +02:00
Moshe Kaplan
9dae05ee59
Docs: specify XML document name in xml.etree.elementtree example ( #24223 )
2024-04-01 19:53:00 +00:00
Matthew Davis
fc2071687b
Docs: add more links to PIPE in subprocess docs ( #25416 )
2024-04-01 21:49:14 +02:00
Barney Gale
fc8007ee36
GH-117337: Deprecate glob.glob0() and glob.glob1(). ( #117371 )
...
These undocumented functions are no longer used by `msilib`, so there's no
reason to keep them around.
2024-04-01 19:37:41 +00:00
Justin Turner Arthur
c741ad3537
gh-77714: Provide an async iterator version of as_completed (GH-22491)
...
* as_completed returns object that is both iterator and async iterator
* Existing tests adjusted to test both the old and new style
* New test to ensure iterator can be resumed
* New test to ensure async iterator yields any passed-in Futures as-is
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
2024-04-01 20:07:29 +03:00
Adorilson Bezerra
56e99307c4
Doc: printf-style library/stdtype improvements ( #16741 )
2024-03-31 22:34:54 +00:00
Shantanu
262445358e
Link to the Python type system specification ( #117400 )
2024-03-31 12:02:48 -07:00
Barney Gale
752e18389e
GH-114575: Rename PurePath.pathmod to PurePath.parser ( #116513 )
...
And rename the private base class from `PathModuleBase` to `ParserBase`.
2024-03-31 19:14:48 +01:00
Pedro Lacerda
54f7e14500
gh-66449: configparser: Add support for unnamed sections ( #117273 )
...
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2024-03-29 15:05:00 +00:00
Christopher Chianelli
a17f313e39
gh-117339: Use NULL instead of None for LOAD_SUPER_ATTR in dis docs (GH-117343)
2024-03-29 06:26:56 +08:00
Malcolm Smith
29829b58a8
gh-117294: Report DocTestCase as skipped if all examples in the doctest are skipped (GH-117297)
2024-03-28 21:59:12 +02:00
Joachim Wuttke
9a388b9a64
bpo-43848: explain optional argument mtime in gzip.py. (GH-25410)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-03-28 13:43:07 +00:00
Russell Keith-Magee
0f27672c50
gh-114099: Add documentation for iOS platform (GH-117057)
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Jacob Coffee <jacob@z7x.org>
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Ned Deily <nad@python.org>
2024-03-28 04:13:13 -04:00
Russell Keith-Magee
f006338017
gh-114099: Additions to standard library to support iOS (GH-117052)
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Ned Deily <nad@python.org>
2024-03-28 03:59:33 -04:00
Tim Hatch
b44898299a
gh-89739: gh-77140: Support zip64 in zipimport (GH-94146)
...
* Reads zip64 files as produced by the zipfile module
* Include tests (somewhat slow, however, because of the need to create "large" zips)
* About the same amount of strictness reading invalid zip files as zipfile has
* Still works on files with prepended data (like pex)
There are a lot more test cases at https://github.com/thatch/zipimport64/ that give me confidence that this works for real-world files.
Fixes #89739 and #77140 .
---------
Co-authored-by: Itamar Ostricher <itamarost@gmail.com>
Reviewed-by: Gregory P. Smith <greg@krypto.org>
2024-03-28 06:54:51 +00:00
Malcolm Smith
74c8568d07
gh-71042: Add platform.android_ver ( #116674 )
2024-03-27 17:53:27 +01:00
Hugo van Kemenade
ce00de4c8c
gh-117225: doctest: only print "and X failed" when non-zero, don't pluralise "1 items" ( #117228 )
2024-03-27 16:46:35 +02:00
Raymond Hettinger
92397d5ead
Add statistics recipe for sampling from an estimated probability density distribution ( #117221 )
2024-03-27 09:04:32 -05:00
Adorilson Bezerra
48c0b05cf0
Change links on the index page ( #117230 )
2024-03-26 13:08:08 -06:00
Raymond Hettinger
7ebad77ad6
Sync main docs and docstring for median_grouped(). (gh-117214)
2024-03-25 23:49:44 +00:00
Nice Zombies
0821923aa9
gh-117114: Make os.path.isdevdrive available on all platforms (GH-117115)
2024-03-25 22:55:11 +00:00
Adorilson Bezerra
c2276176d5
Add information about negative indexes to sequence datamodel doc ( #110903 )
...
Co-authored by Terry Jan Reedy
2024-03-25 18:34:20 -04:00
Victor Stinner
507896d97d
gh-116936: Add PyType_GetModuleByDef() to the limited C API ( #116937 )
2024-03-25 16:32:20 +00:00
Serhiy Storchaka
0c1a42cf9c
gh-87193: Support bytes objects with refcount > 1 in _PyBytes_Resize() (GH-117160)
...
Create a new bytes object and destroy the old one if it has refcount > 1.
2024-03-25 16:32:11 +01:00
Raymond Hettinger
9db2a8f914
Minor markup and grammar fixes in the statistics docs (gh-117216)
2024-03-25 09:26:42 -05:00
Terry Jan Reedy
78a651fd7f
gh-117194: Properly format 'base64' header in What's New ( #117198 )
...
It needs 6, not 3, '-'s.
2024-03-24 11:38:34 -04:00
Kerim Kabirov
f267d5bf2a
GH-115986 Docs: promote pprint.pp usage as a default ( #116614 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-24 07:59:14 -06:00
LilKS
39df773217
gh-101760: Improve the imaplib.IMAP4 example ( #101764 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-03-24 04:01:07 -06:00
Raymond Hettinger
a1e948edba
Add cumulative option for the new statistics.kde() function. ( #117033 )
2024-03-24 04:35:58 -05:00