Commit Graph

29496 Commits

Author SHA1 Message Date
Joey Smith 3e23047363
gh-133986: Document string split algorithm when sep is None and maxsplit is 0 (#133987)
* Document string split algorithm when sep is None and maxsplit is 0

* Update Doc/library/stdtypes.rst

Co-authored-by: Semyon Moroz <donbarbos@proton.me>

---------

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
2025-05-14 06:17:26 -04:00
Sebastian Pipping 2eb49d278e
gh-133577: Add parameter `formatter` to `logging.basicConfig` (GH-133578) 2025-05-14 07:45:00 +01:00
Serhiy Storchaka 18bf8f84aa
gh-95380: Remove the 1024 bytes limit in fcntl.fcntl() and fcntl.ioctl() (GH-132907) 2025-05-13 14:44:07 +00:00
Steve Dower fc3cddd90a
gh-133928: Improvements to using/windows.rst (GH-133952) 2025-05-13 12:38:59 +01:00
ppaez 86c1d439e0
gh-133413: Fix references to removed Request.has_data (GH-133414)
The has_data() method of http.request.Request
was removed in version 3.4.
2025-05-12 21:17:57 +03:00
Stan Ulbrych d1533115ba
gh-133530: Modify Heapq docs image settings (gh-133937)
Add class
2025-05-12 11:03:28 -05:00
mkaraev 27ed64575d
gh-133904: Fix `math.factorial` documentation (#133907)
Co-authored-by: sobolevn <mail@sobolevn.me>
2025-05-12 09:41:15 +00:00
Jelle Zijlstra 0eb448cae5
gh-119180: annotationlib: Fix values of Format members in docs (#133841)
gh-119180: Fix values of Format members in docs
2025-05-11 08:43:24 -07:00
Jelle Zijlstra 3396df56d0
gh-119180: More documentation for PEP 649/749 (#133552)
The SC asked that the Appendix in PEP-749 be added to the docs.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-05-11 08:43:17 -07:00
Bénédikt Tran 13cb8ca3da
gh-133879: Copyedit "What's New in Python 3.15" (#133880) 2025-05-11 09:14:20 +00:00
Bénédikt Tran f91127ae1a
gh-133823: update "Pending Removal in 3.15" notes about `TypedDict` (#133864) 2025-05-11 10:10:54 +02:00
Bénédikt Tran 87312119da
gh-133823: require explicit empty sequence for 0-field `TypedDict` objects (#133863) 2025-05-11 08:04:45 +00:00
Bénédikt Tran add828951e
gh-92897: document removal of `check_home` in `Doc/whatsnew/3.15.rst` (#133815) 2025-05-11 07:47:14 +00:00
Bénédikt Tran c5e1775825
gh-133817: remove keyword arguments syntax for `NamedTuple` (#133822) 2025-05-11 09:05:56 +02:00
Kentaro Jay Takahashi efcc42ba70
gh-132642: document how to render human-readable `timedelta` objects (#133825) 2025-05-10 17:33:28 +02:00
Tim Golden e7741dd773
Tiny doc fix to double up backslashes in a Windows filesystem path (#133828) 2025-05-10 13:45:46 +00:00
Stan Ulbrych dbca27cfca
gh-133379: Fix misuse of the term "arguments" in error messages (GH-133382)
The right term is "parameters".
2025-05-10 15:00:43 +03:00
Donghee Na f28cbc9fd3
gh-115999: Note Python 3.14 free-threaded changes in What's New (gh-131285)
---------

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: T. Wouters <thomas@python.org>
Co-authored-by: mpage <mpage@cs.stanford.edu>
2025-05-10 19:30:16 +09:00
Kokona d13d5fdf61
gh-132971: Update shutil.which() docs (GH-133067) 2025-05-10 10:06:19 +03:00
Éric de28651a7f
gh-123299: Some copyedits to What's New in 3.14 (#133622) 2025-05-09 11:32:26 -04:00
Stan Ulbrych 4fd1095280
gh-133610: Remove PyUnicode_AsDecoded/Encoded functions (#133612) 2025-05-09 17:31:24 +02:00
Stan Ulbrych f34ec09ba5
gh-46236: Document PyUnicode_BuildEncodingMap (#133270) 2025-05-09 17:19:07 +02:00
Yongzi Li 076004ae54
Docs: use boolean constants for returning boolean value (GH-133325) 2025-05-09 17:11:50 +03:00
Bénédikt Tran 3ed8d6fdd1
gh-133644: update `Py_InteractiveFlag` deprecation notice (#133749) 2025-05-09 15:42:42 +02:00
Bénédikt Tran 5044e85265
gh-133644: Remove deprecated Python initialization getter functions (#133661)
Remove functions:

* Py_GetExecPrefix()
* Py_GetPath()
* Py_GetPrefix()
* Py_GetProgramFullPath()
* Py_GetProgramName()
* Py_GetPythonHome()
2025-05-09 11:39:23 +00:00
Will Childs-Klein 6801bd32cb
gh-133623: Add `ssl.HAS_PSK_TLS13` to detect external TLS 1.3 PSK support (#133624) 2025-05-09 09:09:09 +02:00
Rafael Fontenelle 9546eeea90
Fix typo in pending-removal-in-3.14.rst (GH-133680) 2025-05-08 18:57:23 +00:00
Steve Dower dd670fa7ca
Adds docs to help with troubleshooting pip installs. (GH-133692) 2025-05-08 19:30:01 +01:00
Xuehai Pan f0f93ba5fa
gh-131942: Use the Python-specific `Py_DEBUG` macro rather than `_DEBUG` in Windows-related C code (GH-131944) 2025-05-08 15:01:25 +00:00
Bénédikt Tran a2c4467d06
gh-133644: remove deprecated `PyImport_ImportModuleNoBlock` (#133655) 2025-05-08 13:08:43 +00:00
Serhiy Storchaka dcf93c4c93
gh-133595: Clean up sqlite3.Connection APIs (GH-133605)
* All parameters of sqlite3.connect() except "database" are now keyword-only.
* The first three parameters of methods create_function() and
  create_aggregate() are now positional-only.
* The first parameter of methods set_authorizer(), set_progress_handler()
  and set_trace_callback() is now positional-only.
2025-05-08 15:42:00 +03:00
Petr Viktorin 45bb5ba61a
gh-127833: Add links to token types to the lexical analysis intro (#131468)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-05-08 09:38:29 +00:00
Stan Ulbrych 3224b99872
Doc: Allow translating a code block in the tutorial (#131353)
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-05-08 09:22:04 +00:00
dgpb afed5f8835
gh-125028: Prohibit placeholders in partial keywords (GH-126062) 2025-05-08 10:53:53 +03:00
Jonas Obrist 4fcd377563
gh-133641: Doc: Add missing source link in ``concurrent.futures`` (#133642)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-05-08 07:21:51 +00:00
Stan Ulbrych 0552ce0fb2
gh-127833: lexical analysis: Add backticks to BOM example (#132407) 2025-05-08 02:34:48 +01:00
Stan Ulbrych 9fcebb3611
gh-133530: Replace binary tree textual digram with image (gh-133591)
Replace with image
2025-05-07 19:05:06 -05:00
Yongzi Li 61ac88c06e
gh-133361: move the explanation of dict equal before its use (#133424)
Also move up the explanation of insertion order preservation.  Both paragraphs seemed out of place down where they were.
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-05-07 18:04:49 -04:00
Hugo van Kemenade 942673ed19
Finishing touches to update `main` branch for 3.15 (#133588) 2025-05-07 20:46:41 +03:00
Hugo van Kemenade 5ea24116b0 Merge branch 'main' of https://github.com/python/cpython 2025-05-07 18:53:08 +03:00
Brian Schubert ee76e36d76
gh-131535: Fix stale example in html.parser docs, make examples doctests (GH-131551) 2025-05-07 18:50:05 +03:00
Hugo van Kemenade 9748fb3867 Python 3.15.0a0 2025-05-07 18:47:42 +03:00
Hugo van Kemenade b092705907 Python 3.14.0b1 2025-05-06 18:33:52 +03:00
Hugo van Kemenade 5f01b00dea Python 3.14.0b1 2025-05-06 18:32:57 +03:00
Hugo van Kemenade 3dfed23092
gh-123299: Copyedit "What's New in Python 3.14" (#133452)
Co-authored-by: Daniel Hollas <danekhollas@gmail.com>
2025-05-06 15:05:20 +03:00
Semyon Moroz bf8bbe9a81
gh-77065: Add optional keyword-only argument `echo_char` for `getpass.getpass` (#130496)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-05-06 14:56:20 +03:00
Emma Smith 120c9d42f2
gh-132983: Add What's New entry for PEP 784 implementation (#133495)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-05-06 06:54:40 +00:00
Brandt Bucher 57c9810ba4
GH-113464: Add the JIT to What's New (GH-133486) 2025-05-05 20:06:41 -07:00
Valentin Berlier b936ccdb6f
gh-130117: Document why nested `Union`, `Literal`, and `Annotated` types referenced through a type alias are not flattened (#130119)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2025-05-05 19:05:16 -07:00
Noah Kim c4bcc6a778
gh-102567: Add -X importtime=2 for logging an importtime message for already-loaded modules (#118655)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-05-06 01:03:55 +01:00