Serhiy Storchaka
f1a2417b9e
gh-61181: Fix support of choices with string value in argparse (GH-124578)
...
Substrings of the specified string no longer considered valid values.
2024-09-29 10:57:21 +03:00
Serhiy Storchaka
69a4063ca5
gh-123339: Fix cases of inconsistency of __module__ and __firstlineno__ in classes (GH-123613)
...
* Setting the __module__ attribute for a class now removes the
__firstlineno__ item from the type's dict.
* The _collections_abc and _pydecimal modules now completely replace the
collections.abc and decimal modules after importing them. This
allows to get the source of classes and functions defined in these
modules.
* inspect.findsource() now checks whether the first line number for a
class is out of bound.
2024-09-28 20:51:49 +03:00
Jelle Zijlstra
c976d789a9
docs: improve venv docs ( #124540 )
...
- Move "versionchanged" notes that apply to the whole class to the
end of the class docs
- Remove or move notes next to the method list that apply to individual
methods.
- Mark up parameters using the appropriate syntax
- Do not capitalize "boolean"
- Shorten some text
2024-09-28 05:50:09 -07:00
Jean-François B.
fae5058ec1
Doc: Fix default ``latex_elements['papersize']`` ( #124525 )
...
https://www.sphinx-doc.org/en/master/latex.html#the-latex-elements-configuration-setting
It should be 'letterpaper' or 'a4paper' not 'letter' or 'a4'
(not to be confused with PAPER env variable).
2024-09-28 11:30:28 +01:00
Raymond Hettinger
165ed68c26
Sorting techniques edits ( #124701 )
2024-09-27 17:19:44 -07:00
Pablo Galindo Salgado
02b49c5150
gh-107954: Fix configuration type for the perf profiler ( #124636 )
2024-09-28 01:50:16 +02:00
Petr Viktorin
425587a110
gh-124385: Document and soft-deprecate PyLong_AS_LONG (GH-124386)
2024-09-27 23:40:50 +00:00
Jelle Zijlstra
1ba35ea385
gh-123299: Copy-edit the 3.14 What's New ( #124670 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-09-28 01:25:33 +03:00
Matt Delengowski
2357d5ba48
gh-90190: Add doc for using `singledispatch` with precise collection type hints ( #116544 )
2024-09-27 21:10:29 +00:00
Emily Morehouse
626668912f
gh-81263: Add assignment expressions to `help` ( #124641 )
...
* Add assignment expression (:=) to `help`
* Update index for Assignment Expressions to include pair of `assignment; expression`
2024-09-27 13:59:26 -07:00
Petr Viktorin
3387f76b8f
gh-124520: What's New entry for ctypes metaclass __new__/__init__ change (GH-124546)
2024-09-27 22:13:53 +02:00
Victor Stinner
d8cf587dc7
doc: PyUnicode_AsUTF8String() fails if string contains surrogates ( #124605 )
2024-09-27 20:13:29 +00:00
Raymond Hettinger
2e155536ca
Itertool docs: Minor clarifications, wording tweaks, spacing, and active voice. (gh-124690)
...
Minor clarifications, wording tweaks, spacing, and active voice.
2024-09-27 18:43:46 +00:00
Petr Viktorin
e349f73a5a
gh-121277: Raise nice error on `next` as second argument to deprecated-removed (GH-124623)
2024-09-27 19:38:40 +02:00
Alex Waygood
6716dd1c33
Fixup indentation for docs on `ModuleSpec` attributes ( #124681 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-09-27 17:35:09 +00:00
sobolevn
9c7657f099
gh-113878: Add `doc` parameter to `dataclasses.field` (gh-114051)
...
If using `slots=True`, the `doc` parameter ends up in the `__slots__` dict. The `doc` parameter is also in the corresponding `Field` object.
2024-09-27 12:20:49 -04:00
Max Bachmann
b79a21ea42
GH-95079: document error behaviour for some unicode C APIs ( #95080 )
2024-09-27 12:35:55 +02:00
Ned Batchelder
5329d1b74a
Docs: for for/else clarify that return or raise also skip the else ( #124591 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-09-27 06:17:25 -04:00
Hugo van Kemenade
23e812b84a
Docs: Update and proofread `library/venv.rst` ( #124121 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-09-27 02:57:38 +03:00
Gregory P. Smith
b65f2cdfa7
gh-84559: Change the multiprocessing start method default to `forkserver` (GH-101556)
...
Change the default multiprocessing start method away from fork to forkserver or spawn on the remaining platforms where it was fork. See the issue for context. This makes the default far more thread safe (other than for people spawning threads at import time... - don't do that!).
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-09-26 16:57:19 -07:00
Jelle Zijlstra
2c10832887
gh-119180: Rename SOURCE format to STRING ( #124620 )
2024-09-26 13:49:48 -07:00
Matthew Rahtz
7d3497f617
gh-115528: Update language reference for PEP 646 ( #121181 )
...
To recap: the objective is to make starred expressions valid in `subscription`,
which is used for generics: `Generic[...]`, `list[...]`, etc.
What _is_ gramatically valid in such contexts? Seemingly any of the following.
(At least, none of the following throw `SyntaxError` in a 3.12.3 REPL.)
Generic[x]
Generic[*x]
Generic[*x, y]
Generic[y, *x]
Generic[x := 1]
Generic[x := 1, y := 2]
So introducting
flexible_expression: expression | assignment_expression | starred_item
end then switching `subscription` to use `flexible_expression` sorts that.
But then we need to field `yield` - for which any of the following are
apparently valid:
yield x
yield x,
yield x, y
yield *x,
yield *x, *y
Introducing a separate `yield_list` is the simplest way I've been figure out to
do this - separating out the special case of `starred_item ,`.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-09-26 12:35:17 -07:00
Jelle Zijlstra
43979fad90
Programming FAQ: Mention object.__setattr__ as a technique for delegation ( #124617 )
...
This is used for example by threading.local in the stdlib.
2024-09-26 11:50:31 -07:00
Adam Turner
2c472d36b7
Doc: Use the short version for daily downloads ( #124602 )
2024-09-26 16:44:25 +01:00
Jelle Zijlstra
cf2418076d
gh-119127: functools: Improve docs for partial and Placeholder ( #124575 )
2024-09-26 07:12:56 -07:00
Tomas R
09aebb1fbc
gh-118181: Fix parameter markup in AST docs ( #124473 )
2024-09-26 06:38:25 -07:00
Sergey B Kirpichev
274d9ab619
gh-123560: Correct docs for "empty" format type for floats ( #123561 )
2024-09-26 14:40:18 +02:00
sobolevn
19fed6cf6e
gh-124234: Improve docs for `Mock.reset_mock` ( #124237 )
2024-09-26 15:06:52 +03:00
Jelle Zijlstra
08a467b537
gh-101100: Make __subclasses__ doctest stable ( #124577 )
...
Using a standard library class makes this test difficult to maintain
as other tests and other parts of the stdlib may create subclasses,
which may still be alive when this test runs depending on GC timing.
2024-09-26 06:26:03 +00:00
Ron Frederick
1229cb8c14
gh-120284: Enhance `asyncio.run` to accept awaitable objects ( #120566 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2024-09-26 11:45:08 +05:30
dgpb
d9296529eb
gh-119127: functools.partial placeholders (gh-119827)
2024-09-26 01:04:38 +00:00
Jelle Zijlstra
4e829c0e6f
gh-124412: Add helpers for converting annotations to source format ( #124551 )
2024-09-26 00:01:09 +00:00
Ned Batchelder
ffdc80e93d
For-else deserves its own section in the tutorial ( #123946 )
...
* For-else deserves its own section in the tutorial
* remove mention of unrolling the loop
* Update Doc/tutorial/controlflow.rst
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
---------
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-09-25 19:18:18 -04:00
Jelle Zijlstra
99b23c64de
gh-123242: Note that type.__annotations__ may not exist ( #124557 )
...
Closes #123242 . The real criterion is that the attribute does not
exist on heap types, but I don't think we should discuss heap vs.
static types in the language reference.
2024-09-25 16:08:14 -07:00
Savannah Ostrowski
4e2fb7bdf5
GH-58058: Add quick reference for `ArgumentParser` to argparse docs (gh-124227)
2024-09-25 15:22:17 -07:00
Nice Zombies
9968caa0cc
gh-41431: Add `datetime.time.strptime()` and `datetime.date.strptime()` ( #120752 )
...
* Python implementation
* C implementation
* Test `date.strptime`
* Test `time.strptime`
* 📜 🤖 Added by blurb_it.
* Update whatsnew
* Update documentation
* Add leap year note
* Update 2024-06-19-19-53-42.gh-issue-41431.gnkUc5.rst
* Apply suggestions from code review
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Remove parentheses
* Use helper function
* Remove bad return
* Link to github issue
* Fix directive
* Apply suggestions from code review
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
* Fix test cases
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
2024-09-25 14:43:58 -07:00
Sam Gross
68e384c217
gh-124370: Add "howto" for free-threaded Python ( #124371 )
...
* gh-124370: Add "howto" for free-threaded Python
This is a guide aimed at people writing Python code, as oppposed to the
existing guide for C API extension authors.
* Add missing new line
* Update Doc/howto/free-threading-python.rst
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* interned -> immortalized
* Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* Update Doc/howto/free-threading-python.rst
Co-authored-by: mpage <mpage@cs.stanford.edu>
* Update docs
* Apply suggestions from code review
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* A few more updates
* Additional comment on immortal objects
* Mention specializing adaptive interpreter
* Remove trailing whitespace
* Remove mention of C macro
---------
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: mpage <mpage@cs.stanford.edu>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2024-09-25 17:31:53 -04:00
Petr Viktorin
7d24ea9db3
gh-121277: Allow `.. versionadded:: next` in docs (GH-121278)
...
Make `versionchanged:: next`` expand to current (unreleased) version.
When a new CPython release is cut, the release manager will replace
all such occurences of "next" with the just-released version.
(See the issue for release-tools and devguide PRs.)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-09-25 23:30:40 +02:00
Raymond Hettinger
909c6f7189
gh-123884 Tee of tee was not producing n independent iterators (gh-124490)
2024-09-25 13:38:05 -07:00
Alex Waygood
0d9d56c4e4
gh-101100: Add a table of class attributes to the "Custom classes" section of the data model docs ( #124480 )
2024-09-25 19:29:58 +00:00
Adam Turner
6318ffcba2
Doc: Use ``major.minor`` for documentation distribution archive filenames ( #124489 )
2024-09-25 20:06:54 +01:00
Tian Gao
28efeefab7
gh-123756: Disable restart command if pdb is in inline mode ( #123757 )
2024-09-25 11:18:01 -07:00
Thomas Grainger
162d152146
import: permit __name__ for use in __name__ = "__main__": ( #124381 )
...
permit __name__ for use in __name__ = "__main__":
2024-09-25 10:39:14 -07:00
Damien
828583a785
gh-123223: Adding hyperlink of argument in warnings.catch_warnings: ( #123231 )
...
* Adding hyperlink of argument
* Modify as reviewer suggested
2024-09-25 10:30:34 -07:00
Robert Wolff
f8651a2988
gh-123968: fix -f/--float command line option description ( #124517 )
...
* fix -f/--float command line option description
See gh-123968 gh-124009
* Update Doc/library/random.rst
---------
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2024-09-25 09:47:45 -07:00
Irit Katriel
78aeb38f7d
gh-124285: Fix bug where bool() is called multiple times for the same part of a boolean expression ( #124394 )
2024-09-25 15:51:25 +01:00
Malcolm Smith
c58c572a65
gh-123014: Disable pidfd API on older Android versions ( #124458 )
2024-09-25 16:23:30 +02:00
Mat S
8447c933da
gh-123445: calendar: Improve descriptions for day and month attributes ( #123483 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-09-25 10:24:47 +01:00
Tom Most
0d38409f42
Doc: Improve documentation for the ``path`` argument in ``shutil.which()`` ( #124494 )
2024-09-25 08:54:13 +01:00
Eric V. Smith
5c6e3b7150
gh-90562: Support zero argument super with dataclasses when slots=True (gh-124455)
...
Co-authored-by: @wookie184
Co-authored-by: Carl Meyer <carl@oddbird.net>
2024-09-24 21:26:26 -04:00
Tian Gao
af8403a58d
gh-120254: Add a `commands` argument to `pdb.set_trace` ( #120255 )
2024-09-24 12:52:15 -07:00
Savannah Ostrowski
20ccda000b
GH-87358: Add clarification about nargs and default argparse behaviour ( #124094 )
2024-09-24 19:30:01 +03:00
Stanley
e69ff34e81
gh-65169: Clarify prog default in argparse (GH-31602)
2024-09-24 10:57:37 +00:00
sobolevn
faef3fa653
gh-124120: Document `Annotated.__origin__` ( #124125 )
...
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-09-24 09:53:04 +03:00
Victor Stinner
9d344fafc4
gh-124127: Make Py_REFCNT() opaque in limited C API 3.14 ( #124128 )
2024-09-24 08:42:58 +02:00
Jelle Zijlstra
d56faf28e6
gh-119180: Add discussion of annotations to the 3.14 What's New ( #124393 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-09-23 22:50:13 -07:00
Jason Fried
d87482bc4e
gh-119333: Add C api to have contextvar enter/exit callbacks ( #119335 )
...
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2024-09-23 20:40:17 -07:00
Donghee Na
ad7c778546
gh-123990: Good bye WITH_FREELISTS macro (gh-124358)
2024-09-24 01:28:59 +00:00
Petr Viktorin
be76e3f26e
gh-100980: ctypes: Test, document, and fix finalizing _fields_ (GH-124292)
...
- If setting `_fields_` fails, e.g. with AttributeError, don't set the attribute in `__dict__`
- Document the “finalization” behaviour
- Beef up tests: add `getattr`, test Union as well as Structure
- Put common functionality in a common function
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2024-09-24 02:40:53 +02:00
Bénédikt Tran
38a887dc3e
gh-119004: fix a crash in equality testing between `OrderedDict` ( #121329 )
2024-09-23 18:44:36 -05:00
Malcolm Smith
e80dd3035f
gh-116622: Complete Android documentation ( #124259 )
...
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: T. Wouters <thomas@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-09-23 23:09:53 +00:00
Alex Waygood
8a2baedc4b
Bump Ruff to 0.6.7 ( #124384 )
2024-09-23 22:19:35 +00:00
Adam Turner
0060486862
Doc: Add ``make dist-no-html`` ( #124383 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-09-23 23:11:34 +01:00
Brett Cannon
67201ad53f
GH-65961: Document the deprecation of `__package__` and `__cached__` (GH-124377)
...
The code changes for warning related to `__package__` landed in Python 3.12. `__cached__` doesn't have any changes as it isn't used but only set by the import system.
2024-09-23 14:14:33 -07:00
Adam Turner
9e55a02fab
GH-109975: Copyedit 3.13 What's New: Trivia ( #124348 )
2024-09-23 19:32:23 +00:00
Adam Turner
e7d465a607
GH-109975: Copyedit 3.13 What's New: Copyedit C API deprecations pending removal ( #124336 )
2024-09-23 19:40:20 +01:00
Adam Turner
f3b2c36deb
GH-109975: Copyedit 3.13 What's New: Build Changes ( #124343 )
...
Co-authored-by: Malcolm Smith <smith@chaquo.com>
2024-09-23 11:30:45 -07:00
Adam Turner
2f6d4109b8
GH-109975: Copyedit 3.13 What's New: Porting to Python 3.13 ( #124341 )
...
Copyedit Porting to Python 3.13
2024-09-23 11:14:37 -07:00
decorator-factory
6203ef35dd
Replace the term `Immutable` with a `Hashable` in the `sequence` entry of the Glossary ( #124350 )
...
The term `Immutable` in the `sequence` entry of the glossary is used incorrectly, in fact dicts accepts hashable keys, which is not the same as immutable.
2024-09-23 16:34:08 +00:00
Adam Turner
9d0a75269c
GH-109975: Copyedit 3.13 What's New: C API ( #124313 )
2024-09-23 14:28:17 +01:00
Savannah Ostrowski
5f5c0b9c23
GH-79714: Add mention of stderr for clarity to ArgumentParser.exit() (GH-123932)
2024-09-23 12:08:03 +03:00
Y5
d3e79d75d1
gh-124130: Notes on empty string corner case of category `\B` ( #124133 )
...
Signed-off-by: y5c4l3 <y5c4l3@proton.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-09-23 08:58:14 +02:00
Jacob Walls
622368d99c
Fix typo in XMLParser doc ( #124129 )
2024-09-20 12:42:44 +02:00
Hugo van Kemenade
5f01111594
Docs: Update two FAQs for Python 3 ( #124247 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-09-19 21:50:05 +03:00
Jakub Kulík
8f82d9aa21
bpo-41843: Reenable use of sendfile in shutil module on Solaris (GH-23893)
2024-09-19 14:47:05 +00:00
Zachary Ware
9a6e2336e4
Fix `make htmllive` target (GH-124219)
...
Allow `make -C Doc htmllive` to work without manual venv activation
Set PATH to ensure that `sphinx-autobuild` can find `sphinx-build`.
2024-09-18 21:02:20 +00:00
Tomas R
21d2a9ab2f
gh-116022: Improve `repr()` of AST nodes ( #117046 )
...
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-09-18 10:28:22 -07:00
Petr Viktorin
32119fc377
gh-118915: Add/fix docs entries for some new 3.13 C API (GH-124134)
2024-09-18 14:15:43 +02:00
Sergey B Kirpichev
8a284e1896
gh-119771: Set errno on overflows in _Py_c_pow() ( #120256 )
...
Before we did this in complex_pow() and behavior of the public C API
function _Py_c_pow() was different from the pure-python pow().
2024-09-18 10:39:11 +02:00
neonene
646f16bdee
gh-124153: Implement `PyType_GetBaseByToken()` and `Py_tp_token` slot (GH-124163)
2024-09-18 09:18:19 +02:00
Bradley Reynolds
d8c0fe1944
gh-124194: Fix wrong issue number in What's New in Python 3.8 ( #124195 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-09-18 01:51:15 +01:00
Rafael Fontenelle
ab80c6b402
GH-103484: Fix broken links reported by linkcheck ( #124169 )
2024-09-17 17:05:15 +02:00
Rafael Fontenelle
33eeccf6d4
Use pep role instead of url ( #121611 )
2024-09-17 16:02:14 +03:00
Rafael Fontenelle
0a32c6959c
GH-103484: Fix permanently redirects reported by linkcheck (GH-124144)
...
Fix redirects reported by linkcheck, update docs conf.py checks.
2024-09-17 02:53:38 +00:00
Adam Turner
05235e3c16
GH-109975: Copyedit 3.13 What's New: New Deprecations ( #123845 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-09-16 17:03:46 +00:00
Chris Barker
38809171b8
gh-121607: Edited source file import recipe to make it more clear ( #121519 )
...
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2024-09-13 16:36:40 -07:00
Raymond Hettinger
cd06f5e323
Minor edits to the descriptor guide (GH-123928)
2024-09-13 17:02:37 -05:00
Oleg Iarygin
4f25e282ad
gh-100554: Fix formatting of type.rst modifications ( #124066 )
2024-09-13 18:35:08 +00:00
Wenzel Jakob
74330d992b
gh-100554: Add ``Py_tp_vectorcall`` slot to set ``PyTypeObject.tp_vectorcall`` using the ``PyType_FromSpec`` function family. ( #123332 )
2024-09-13 17:40:25 +02:00
utkonos
bbb36c0934
Normalize cdecl formatting as found elsewhere on ctypes.rst ( #121379 )
2024-09-13 18:26:16 +03:00
Rafael Fontenelle
39612103dd
Update to 3.13 the output of exceptions raised ( #123888 )
2024-09-13 15:17:30 +00:00
Donghee Na
e6bb1a2b28
gh-119802: Update memory management docs for free-threaded build (gh-124006)
...
* gh-119802: Update memory management docs for free-threaded build
* nit
* nit
* Address code review
* nit
* Update Doc/c-api/memory.rst
Co-authored-by: Sam Gross <colesbury@gmail.com>
---------
Co-authored-by: Sam Gross <colesbury@gmail.com>
2024-09-13 15:15:44 +00:00
Benjamin Peterson
bb904e063d
closes gh-124016: update Unicode to 16.0.0 ( #124017 )
2024-09-13 07:47:04 -07:00
Petr Viktorin
432bf31327
gh-123909: PyType_From*: Disallow metaclasses with custom tp_new (GH-123947)
2024-09-13 13:18:49 +02:00
Savannah Ostrowski
e5b0185e43
GH-101599: Update docs to remove redundant option in argparse tutorial ( #124025 )
2024-09-13 09:14:52 +03:00
Yngve Mardal Moe
584cdf8d41
gh-123614: Add save function to turtle.py ( #123617 )
2024-09-12 21:36:17 -07:00
Jason R. Coombs
a47cd21890
gh-123976: Refresh docs around custom providers. ( #123977 )
...
* gh-123976: Refresh docs around custom providers.
* Remove excess whitespace.
2024-09-13 02:29:08 +00:00
Nice Zombies
8e99495701
gh-118577: Clarify that inspect.BoundArguments prefers to put values in args (GH-119936)
2024-09-12 14:03:32 +02:00
Hugo van Kemenade
f5597dbd0e
Docs: Drop letter PDF ( #123912 )
2024-09-12 13:49:19 +03:00
Irit Katriel
77c68b40d5
gh-111997: update what's new in 3.13 re C API for monitoring events ( #123822 )
2024-09-12 11:32:57 +01:00
sobolevn
3bd942f106
Fix "The Matrix" movie release year in `typing.rst` ( #123965 )
2024-09-11 21:25:23 +03:00
Hugo van Kemenade
eb169f4027
Update Sphinx Lint and fix unnecessary parentheses in `:func:`s ( #123960 )
2024-09-11 21:05:15 +03:00
Irit Katriel
e07154fd1e
gh-123958: apply docstring removal optimization in ast_opt instead of codegen ( #123959 )
2024-09-11 17:02:28 +00:00
Bénédikt Tran
ef05801ba0
gh-108951: Document how to terminate an asyncio.TaskGroup ( #123837 )
...
We don't want to add another API, since the recipe is straightforward and rarely needed.
The advantage is that we could backport this to the earliest Python version that has taskgroups (3.11, alas in security mode already, so we'll just do 3.12 and 3.13).
2024-09-11 08:43:24 -07:00
Jelle Zijlstra
5436d8b9c3
gh-119180: Documentation for PEP 649 and 749 ( #122235 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2024-09-11 07:49:59 -07:00
Tushar Sadhwani
3597642ed5
gh-122239: Add actual count in unbalanced unpacking error message when possible ( #122244 )
2024-09-10 16:07:30 +01:00
Bénédikt Tran
07f0bf5aa4
gh-123165: update docs signature for `dis.disassemble` ( #123808 )
2024-09-10 15:25:27 +01:00
Petr Viktorin
1b29f4144c
gh-123905: Update TOML description to include version number (GH-123906)
...
Update TOML description to include version number
There is some movement, currently blocked, that would update the TOML spec to 1.1.0; this would include breaking changes to what characters are allowed. Thus, it is worthwhile for the library page to be clear which version is implemented here.
Co-authored-by: Paul Hoffman <phoffman@proper.com>
2024-09-10 14:16:32 +00:00
Peter Bierma
962304a54c
gh-123609: Clarify usage of standalone `PyBUF_FORMAT` (GH-123778)
2024-09-10 15:05:28 +02:00
Raymond Hettinger
2afba5ca6d
Small improvements to the itertools docs (GH-123885)
2024-09-09 20:57:49 -05:00
Anthony Sottile
d359a7683e
gh-66449: remove duplicate configparser section in 3.13 whatsnew ( #123874 )
2024-09-09 16:40:18 -04:00
Serhiy Storchaka
c0c2aa7644
gh-122213: Add notes for pickle serialization errors (GH-122214)
...
This allows to identify the source of the error.
2024-09-09 21:28:55 +03:00
sobolevn
b950831c94
Mention `curl` in `contextvars` docs ( #123838 )
2024-09-09 16:58:49 +03:00
Bénédikt Tran
32bc2d6141
gh-123834: Add `symtable` to the list of modules with a CLI ( #123835 )
2024-09-09 13:45:43 +02:00
Donghee Na
aa3f11f80a
gh-108219: Add credits to the free-threading entry in What's New ( #123802 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Itamar Oren <itamarost@gmail.com>
2024-09-08 21:20:15 +01:00
Wulian
beee91cdcc
gh-123789: `secrets.randbits` returns only non-negative int ( #123801 )
2024-09-07 21:17:59 -07:00
Wei-Hsiang (Matt) Wang
93050e4614
Remove excessive backticks in logging doc ( #123813 )
2024-09-07 18:09:02 +00:00
Nathan Goldbaum
5a4fb7ea1c
gh-109975: Add links to py-free-threading.github.io ( #123776 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2024-09-06 20:12:12 +03:00
Stanislav Terliakov
56e4a417ce
gh-123523: Rework typing documentation for generators and coroutines, and link to it from `collections.abc` docs ( #123544 )
2024-09-06 17:41:06 +01:00
Victor Stinner
d343f977ba
gh-121645: Fix typo in PyBytes_Join() doc ( #123783 )
2024-09-06 16:08:17 +02:00
David Caron
67957ea77d
gh-103066: Add links and `help` in site.py constants ( #103777 )
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-09-06 10:29:28 +03:00
Peter Bierma
84ad264ce6
gh-123275: Support `-Xgil=1` and `PYTHON_GIL=1` on non-free-threaded builds (gh-123276)
2024-09-06 08:53:47 +09:00
nkinnan
b5aa271f86
gh-123476: Add support for TCP_QUICKACK socket setting to Windows ( #123478 )
...
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2024-09-05 22:59:48 +02:00
Rafael Fontenelle
6e43928831
Swap the and from in sentence in init_config.rst ( #120086 )
2024-09-05 23:04:15 +03:00
edson duarte
9aea9c100f
gh-85453: Improve instance attributes mark up on datetime.rst ( #123655 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-09-05 20:56:52 +03:00
Pieter Eendebak
327463aef1
gh-123207: Clarify the documentation for the mro lookup for super() (GH-123417)
2024-09-05 15:52:04 +02:00
Petr Viktorin
16be8db6be
gh-123465: Allow Py_RELATIVE_OFFSET for __*offset__ members (GH-123474)
2024-09-05 14:14:05 +02:00
Nice Zombies
c530ce1e9d
gh-118710: Make IPv*Address.version & max_prefixlen available on the class (GH-120698)
2024-09-04 15:51:12 +02:00
Victor Stinner
0d6b6e34a2
gh-107954, PEP 741: Add PyInitConfig_AddModule() function ( #123668 )
2024-09-04 11:41:57 +00:00
Alexander Bessman
7d2c2f24da
gh-123463: Include logging_flow diagram in non-HTML docs (GH-123464)
2024-09-04 13:14:36 +02:00
ryan-duve
c08ede2714
gh-123392: Clarify wording regarding parameters that are functions to be called (GH-123394)
2024-09-04 11:05:46 +00:00
Lipták Attila (Flash)
cfbc841ef3
gh-123621: Fix `datamodel.rst` with proper `dict` notation ( #123648 )
2024-09-03 22:52:00 +03:00
Shaygan Hooshyari
68fe5758bf
gh-123579: Document exclamation token ( #123612 )
2024-09-03 16:49:38 +02:00
Victor Stinner
ef9d54703f
gh-107954, PEP 741: Add PyInitConfig C API ( #123502 )
...
Add Doc/c-api/config.rst documentation.
2024-09-03 12:33:49 +00:00
CBerJun
9e079c220b
gh-123580: Fix `signed_number` token in documentation (GH-123582)
...
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2024-09-03 10:01:26 +02:00
Yorik Hansen
9684f40b9f
gh-123430: Add dark mode support to pages generated by http.server ( #123475 )
...
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2024-09-03 09:32:11 +03:00
Victor Stinner
33b790978d
gh-107954, PEP 741: Add PyConfig_Get()/Set() functions ( #123472 )
...
Add PyConfig_Get(), PyConfig_GetInt(), PyConfig_Set() and
PyConfig_Names() functions to get and set the current runtime Python
configuration.
Add visibility and "sys spec" to config and preconfig specifications.
_PyConfig_AsDict() now converts PyConfig.xoptions as a dictionary.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-09-02 23:25:08 +02:00
Nice Zombies
22fdb8cf89
gh-118508: Clarify which characters are matched by `\s` ( #119155 )
...
Clarify re syntax
2024-09-02 07:48:15 -04:00
sobolevn
c3ed775899
gh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dataclasses` ( #123571 )
2024-09-02 09:58:38 +03:00
Rafael Fontenelle
9a32a2588e
gh-109975: Remove dangling angle bracket from 3.13.rst ( #123589 )
...
Remove dangling angle bracket from 3.13.rst
2024-09-02 07:57:56 +03:00
Raymond Hettinger
e3f76e5cfb
Remove irrelevant detail from example code. (gh-123587)
2024-09-01 20:04:33 -05:00
Raymond Hettinger
cb6d25011e
Simplify Property() recipe to focus on the essentials (gh-123585)
2024-09-01 17:49:38 -05:00
sobolevn
75e72822a3
gh-91126: Docs and tests for slotted dataclasses with `__init_subclass__` ( #123342 )
2024-09-01 13:25:34 +03:00
jlallas384
bac0e115b8
gh-123550: Fix code snippet of `BUILD_TUPLE` in `dis` docs ( #123551 )
2024-09-01 07:11:40 +01:00
Adam Turner
0ff59d707c
GH-109975: Copyedit 3.13 What's New: Removals ( #123529 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-09-01 05:41:17 +00:00
Aarni Koskela
0b6acfee04
gh-123494: Improve documentation for ``webbrowser`` return types ( #123495 )
...
Document the return value for ``webbrowser.open*()``.
2024-09-01 06:17:03 +01:00
Wei-Hsiang (Matt) Wang
cf472577e2
gh-123517: Remove unnecessary ``:meth:`` parentheses ( #123518 )
2024-09-01 05:59:42 +01:00
Maciej Olko
5332d989af
gh-123407: Enable translating literal and code blocks ( #123408 )
2024-08-31 07:31:36 +01:00
Victor Stinner
d8e69b2c1b
gh-122854: Add Py_HashBuffer() function ( #122855 )
2024-08-30 15:42:27 +00:00
Victor Stinner
3d60dfbe17
gh-121645: Add PyBytes_Join() function ( #121646 )
...
* Replace _PyBytes_Join() with PyBytes_Join().
* Keep _PyBytes_Join() as an alias to PyBytes_Join().
2024-08-30 12:57:33 +00:00