summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-84559: Change the multiprocessing start method default to `forkserver` ↵Gregory P. Smith2024-09-263-14/+29
| | | | | | | | (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>
* gh-119180: Rename SOURCE format to STRING (#124620)Jelle Zijlstra2024-09-263-14/+14
|
* gh-115528: Update language reference for PEP 646 (#121181)Matthew Rahtz2024-09-262-17/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Programming FAQ: Mention object.__setattr__ as a technique for delegation ↵Jelle Zijlstra2024-09-261-3/+10
| | | | | | (#124617) This is used for example by threading.local in the stdlib.
* Doc: Use the short version for daily downloads (#124602)Adam Turner2024-09-261-1/+1
|
* gh-119127: functools: Improve docs for partial and Placeholder (#124575)Jelle Zijlstra2024-09-261-15/+17
|
* gh-118181: Fix parameter markup in AST docs (#124473)Tomas R2024-09-261-13/+13
|
* gh-123560: Correct docs for "empty" format type for floats (#123561)Sergey B Kirpichev2024-09-261-3/+5
|
* gh-124234: Improve docs for `Mock.reset_mock` (#124237)sobolevn2024-09-261-10/+33
|
* gh-101100: Make __subclasses__ doctest stable (#124577)Jelle Zijlstra2024-09-261-2/+4
| | | | | 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.
* gh-120284: Enhance `asyncio.run` to accept awaitable objects (#120566)Ron Frederick2024-09-261-8/+22
| | | | Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-119127: functools.partial placeholders (gh-119827)dgpb2024-09-262-13/+68
|
* gh-124412: Add helpers for converting annotations to source format (#124551)Jelle Zijlstra2024-09-261-0/+36
|
* For-else deserves its own section in the tutorial (#123946)Ned Batchelder2024-09-251-31/+54
| | | | | | | | | | | | | * 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>
* gh-123242: Note that type.__annotations__ may not exist (#124557)Jelle Zijlstra2024-09-251-1/+2
| | | | | 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.
* GH-58058: Add quick reference for `ArgumentParser` to argparse docs (gh-124227)Savannah Ostrowski2024-09-251-0/+19
|
* gh-41431: Add `datetime.time.strptime()` and `datetime.date.strptime()` ↵Nice Zombies2024-09-252-15/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#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>
* gh-124370: Add "howto" for free-threaded Python (#124371)Sam Gross2024-09-253-0/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* gh-121277: Allow `.. versionadded:: next` in docs (GH-121278)Petr Viktorin2024-09-258-14/+34
| | | | | | | | | | 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>
* gh-123884 Tee of tee was not producing n independent iterators (gh-124490)Raymond Hettinger2024-09-251-19/+30
|
* gh-101100: Add a table of class attributes to the "Custom classes" section ↵Alex Waygood2024-09-2540-222/+269
| | | | of the data model docs (#124480)
* Doc: Use ``major.minor`` for documentation distribution archive filenames ↵Adam Turner2024-09-252-12/+14
| | | | (#124489)
* gh-123756: Disable restart command if pdb is in inline mode (#123757)Tian Gao2024-09-252-1/+18
|
* import: permit __name__ for use in __name__ = "__main__": (#124381)Thomas Grainger2024-09-251-1/+1
| | | permit __name__ for use in __name__ = "__main__":
* gh-123223: Adding hyperlink of argument in warnings.catch_warnings: (#123231)Damien2024-09-251-0/+3
| | | | | * Adding hyperlink of argument * Modify as reviewer suggested
* gh-123968: fix -f/--float command line option description (#124517)Robert Wolff2024-09-251-1/+1
| | | | | | | | | | | * 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>
* gh-124285: Fix bug where bool() is called multiple times for the same part ↵Irit Katriel2024-09-251-0/+6
| | | | of a boolean expression (#124394)
* gh-123014: Disable pidfd API on older Android versions (#124458)Malcolm Smith2024-09-252-2/+2
|
* gh-123445: calendar: Improve descriptions for day and month attributes (#123483)Mat S2024-09-251-4/+20
| | | | | 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>
* Doc: Improve documentation for the ``path`` argument in ``shutil.which()`` ↵Tom Most2024-09-251-6/+7
| | | | (#124494)
* gh-90562: Support zero argument super with dataclasses when slots=True ↵Eric V. Smith2024-09-251-7/+0
| | | | | | (gh-124455) Co-authored-by: @wookie184 Co-authored-by: Carl Meyer <carl@oddbird.net>
* gh-120254: Add a `commands` argument to `pdb.set_trace` (#120255)Tian Gao2024-09-241-1/+7
|
* GH-87358: Add clarification about nargs and default argparse behaviour (#124094)Savannah Ostrowski2024-09-241-0/+3
|
* gh-65169: Clarify prog default in argparse (GH-31602)Stanley2024-09-241-4/+5
|
* gh-124120: Document `Annotated.__origin__` (#124125)sobolevn2024-09-241-0/+18
| | | | Co-authored-by: Brian Schubert <brianm.schubert@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-124127: Make Py_REFCNT() opaque in limited C API 3.14 (#124128)Victor Stinner2024-09-242-3/+5
|
* gh-119180: Add discussion of annotations to the 3.14 What's New (#124393)Jelle Zijlstra2024-09-241-1/+88
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-119333: Add C api to have contextvar enter/exit callbacks (#119335)Jason Fried2024-09-241-0/+46
| | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-123990: Good bye WITH_FREELISTS macro (gh-124358)Donghee Na2024-09-242-7/+1
|
* gh-100980: ctypes: Test, document, and fix finalizing _fields_ (GH-124292)Petr Viktorin2024-09-241-7/+14
| | | | | | | | - 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>
* gh-119004: fix a crash in equality testing between `OrderedDict` (#121329)Bénédikt Tran2024-09-231-2/+5
|
* gh-116622: Complete Android documentation (#124259)Malcolm Smith2024-09-2319-100/+191
| | | | | 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>
* Bump Ruff to 0.6.7 (#124384)Alex Waygood2024-09-231-4/+1
|
* Doc: Add ``make dist-no-html`` (#124383)Adam Turner2024-09-232-2/+32
| | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* GH-65961: Document the deprecation of `__package__` and `__cached__` (GH-124377)Brett Cannon2024-09-234-5/+13
| | | 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.
* GH-109975: Copyedit 3.13 What's New: Trivia (#124348)Adam Turner2024-09-231-23/+17
|
* GH-109975: Copyedit 3.13 What's New: Copyedit C API deprecations pending ↵Adam Turner2024-09-234-60/+114
| | | | removal (#124336)
* GH-109975: Copyedit 3.13 What's New: Build Changes (#124343)Adam Turner2024-09-231-24/+33
| | | Co-authored-by: Malcolm Smith <smith@chaquo.com>
* GH-109975: Copyedit 3.13 What's New: Porting to Python 3.13 (#124341)Adam Turner2024-09-231-85/+104
| | | Copyedit Porting to Python 3.13
* Replace the term `Immutable` with a `Hashable` in the `sequence` entry of ↵decorator-factory2024-09-231-1/+1
| | | | | 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.