summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* Docs: move sphinx-lint to pre-commit (#105750)Hugo van Kemenade2023-06-183-10/+3
|
* gh-105844: Use devguide terminology to denote versions (#105882)Erlend E. Aasland2023-06-181-3/+3
|
* gh-105481: remove HAS_ARG, HAS_CONST, IS_JUMP_OPCODE, IS_PSEUDO_OPCODE and ↵Irit Katriel2023-06-171-0/+6
| | | | replace by their new versions (#105865)
* gh-105678: document SET_FUNCTION_ATTRIBUTE (#105843)Carl Meyer2023-06-161-9/+20
|
* gh-105844: Consistently use 'minor version' for X.Y versions (#105851)Erlend E. Aasland2023-06-162-3/+3
|
* Fix inaccuracies in "Assorted Topics" section of "Defining Extension Types" ↵chgnrdv2023-06-161-5/+5
| | | | tutorial (#104969)
* bpo-44530: Document the change in MAKE_FUNCTION behavior (#93189)Alex Doe2023-06-161-2/+5
| | | | | * bpo-44530: Document the change in MAKE_FUNCTION behavior Fixes dis module documentation for MAKE_FUNCTION due to https://github.com/python/cpython/commit/2f180ce2cb6e6a7e3c517495e0f4873d6aaf5f2f (bpo-44530, released as part of 3.11) removes the qualified name at TOS
* More reorganisation of the typing docs (#105787)Alex Waygood2023-06-151-101/+117
|
* Improve docs for `typing.dataclass_transform` (#105792)Alex Waygood2023-06-151-37/+69
|
* GH-77273: Better bytecodes for f-strings (GH-6132)Mark Shannon2023-06-141-16/+37
|
* gh-105570: Deprecate unusual ways of creating empty TypedDicts (#105780)Alex Waygood2023-06-142-6/+17
| | | Deprecate two methods of creating typing.TypedDict classes with 0 fields using the functional syntax: `TD = TypedDict("TD")` and `TD = TypedDict("TD", None)`. Both will be disallowed in Python 3.15. To create a TypedDict class with 0 fields, either use `class TD(TypedDict): pass` or `TD = TypedDict("TD", {})`.
* gh-105196: Fix indentations of section headings in C API docs (#105672)TATHAGATA ROY2023-06-143-6/+6
|
* Typing docs: move the deprecated stuff below the non-deprecated stuff (#105781)Alex Waygood2023-06-141-488/+488
|
* gh-105566: Deprecate unusual ways of creating `typing.NamedTuple` classes ↵Alex Waygood2023-06-142-0/+24
| | | | | | | (#105609) Deprecate creating a typing.NamedTuple class using keyword arguments to denote the fields (`NT = NamedTuple("NT", x=int, y=str)`). This will be disallowed in Python 3.15. Use the class-based syntax or the functional syntax instead. Two methods of creating `NamedTuple` classes with 0 fields using the functional syntax are also deprecated, and will be disallowed in Python 3.15: `NT = NamedTuple("NT")` and `NT = NamedTuple("NT", None)`. To create a `NamedTuple` class with 0 fields, either use `class NT(NamedTuple): pass` or `NT = NamedTuple("NT", [])`.
* gh-104873: Add typing.get_protocol_members and typing.is_protocol (#104878)Jelle Zijlstra2023-06-142-0/+40
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-105687: Remove deprecated objects from `re` module (#105688)Nikita Sobolev2023-06-141-0/+4
|
* tarfile: Fix positional-only syntax in docs (GH-105770)Jelle Zijlstra2023-06-141-4/+4
| | | | | | | | The syntax used in the current docs (a / before any args) is invalid. I think the right approach is for the arguments to arbitrary filter functions to be treated as positional-only, meaning that users can supply filter functions with any names for the argument. tarfile.py only calls the filter function with positional arguments.
* gh-105387: Limited C API implements Py_INCREF() as func (#105388)Victor Stinner2023-06-141-0/+5
| | | | | In the limited C API version 3.12, Py_INCREF() and Py_DECREF() functions are now implemented as opaque function calls to hide implementation details.
* GH-104554: Add RTSPS support to `urllib/parse.py` (#104605)zentarim2023-06-131-3/+3
| | | | | | | | | | | | | * GH-104554: Add RTSPS support to `urllib/parse.py` RTSPS is the permanent scheme defined in https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml alongside RTSP and RTSPU schemes. * 📜🤖 Added by blurb_it. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-98040: Fix importbench: use types.ModuleType() (#105743)Victor Stinner2023-06-131-0/+2
| | | Replace removed imp.new_module(name) with types.ModuleType(name).
* gh-105733: Deprecate ctypes SetPointerType() and ARRAY() (#105734)Victor Stinner2023-06-131-0/+6
|
* gh-105373: Remove PyArg_Parse() deprecation (#105394)Victor Stinner2023-06-131-8/+16
| | | | | | There is no plan to deprecate PyArg_Parse(). The deprecation was added as a comment in the C API documentation in 2007 by commit 85eb8c103c9e460917911b43c6be302c30d75efb.
* gh-105713: Document that tokenize raises when mixing tabs/spaces (#105723)Lysandros Nikolaou2023-06-131-0/+3
| | | | | | * gh-105713: Document that tokenize raises when mixing tabs/spaces * Update Doc/whatsnew/3.12.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-105331: Change `asyncio.sleep` to raise ``ValueError` for nan (#105641)Jay2023-06-121-0/+3
| | | | Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-103968: PyType_FromMetaclass: Allow metaclasses with tp_new=NULL (GH-105386)Petr Viktorin2023-06-121-1/+1
|
* gh-102676: Add more convenience properties to `dis.Instruction` (#103969)Tomas R2023-06-111-0/+42
| | | | | | | | Adds start_offset, cache_offset, end_offset, baseopcode, baseopname, jump_target and oparg to dis.Instruction. Also slightly improves the disassembly output by allowing opnames to overflow into the space reserved for opargs.
* gh-80480: Emit DeprecationWarning for array's 'u' type code (#95760)Hugo van Kemenade2023-06-112-1/+6
|
* gh-99108: Mention HACL\* in the hashlib docs. (#105634)Gregory P. Smith2023-06-101-5/+6
|
* Cleanup and clarify our hashlib docs. (#105624)Gregory P. Smith2023-06-101-47/+90
| | | Clarify and improve our hashlib docs. Now with 50% less mess!
* Clarify the supported cases in the tokenize module (#105569)Pablo Galindo Salgado2023-06-091-0/+9
|
* Miscellaneous improvements to the typing docs (#105529)Alex Waygood2023-06-091-74/+143
| | | Mostly, these are changes so that we use shorter sentences and shorter paragraphs. In particular, I've tried to make the first sentence introducing each object in the typing API short and declarative.
* gh-102304: Remove Py_INCREF() doc change (#105552)Victor Stinner2023-06-091-9/+0
| | | | Py_INCREF() was made compatible again with Python 3.9 and older in the limited API of Python debug mode.
* gh-105545: Remove deprecated `MacOSXOSAScript._name` (gh-105546)Nikita Sobolev2023-06-092-1/+6
|
* gh-105396: Deprecate PyImport_ImportModuleNoBlock() function (#105397)Victor Stinner2023-06-092-0/+8
| | | | Deprecate the PyImport_ImportModuleNoBlock() function which is just an alias to PyImport_ImportModule() since Python 3.3.
* gh-105332: [Enum] Fix unpickling flags in edge-cases (GH-105348)Nikita Sobolev2023-06-081-1/+10
| | | | | * revert enum pickling from by-name to by-value Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* Further improve docs for `typing.Annotated` (#105498)Alex Waygood2023-06-081-55/+77
|
* gh-90015: Document that PEP-604 unions do not support forward references ↵Alex Waygood2023-06-071-0/+8
| | | | (#105366)
* typing: Improve documentation of generic classes and aliases (#105369)Alex Waygood2023-06-071-62/+86
|
* gh-97797: Improve documentation for typing.Annotated (#105365)Alex Waygood2023-06-071-19/+54
|
* Improve docs for `typing.TypeAlias` (#105372)Alex Waygood2023-06-071-4/+26
|
* gh-105390: Correctly raise TokenError instead of SyntaxError for tokenize ↵Pablo Galindo Salgado2023-06-072-10/+6
| | | | errors (#105399)
* Improve code examples in `typing.rst` (#105346)Alex Waygood2023-06-071-30/+75
|
* typing docs: Make the PEPs list an expandable section, hidden by default ↵Alex Waygood2023-06-071-1/+11
| | | | | (#105353) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* GH-95088: Clarify rules for parsing an item key for format strings (#103779)achhina2023-06-071-1/+3
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* `typing.NewType` docs: the future performance improvements are now in the ↵Alex Waygood2023-06-071-3/+7
| | | | past (#105354)
* GH-102613: Fast recursive globbing in `pathlib.Path.glob()` (GH-104512)Barney Gale2023-06-061-4/+8
| | | | | | | | | | | | | | This commit introduces a 'walk-and-match' strategy for handling glob patterns that include a non-terminal `**` wildcard, such as `**/*.py`. For this example, the previous implementation recursively walked directories using `os.scandir()` when it expanded the `**` component, and then **scanned those same directories again** when expanded the `*.py` component. This is wasteful. In the new implementation, any components following a `**` wildcard are used to build a `re.Pattern` object, which is used to filter the results of the recursive walk. A pattern like `**/*.py` uses half the number of `os.scandir()` calls; a pattern like `**/*/*.py` a third, etc. This new algorithm does not apply if either: 1. The *follow_symlinks* argument is set to `None` (its default), or 2. The pattern contains `..` components. In these cases we fall back to the old implementation. This commit also replaces selector classes with selector functions. These generators directly yield results rather calling through to their successors. A new internal `Path._glob()` method takes care to chain these generators together, which simplifies the lazy algorithm and slightly improves performance. It should also be easier to understand and maintain.
* gh-105382: Remove urllib.request cafile parameter (#105384)Victor Stinner2023-06-062-15/+12
| | | | Remove cafile, capath and cadefault parameters of the urllib.request.urlopen() function, deprecated in Python 3.6.
* gh-82180: Update math.factorial(float) doc for Python 3.10 (#105385)Victor Stinner2023-06-061-2/+2
|
* gh-105373: Fix decimal documentation formatting (#105395)Victor Stinner2023-06-061-1/+1
| | | The deprecation is on decimal.HAVE_THREADS, not on the whole module.
* sliding_window() recipe: Raise ValueError for non-positive window sizes. ↵Raymond Hettinger2023-06-061-3/+27
| | | | Add more tests. (GH-105403)