summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* GH-97950: Allow translation of index directive content (#104000)Adam Turner2023-05-042-0/+34
|
* gh-97850: Deprecate `find_loader` and `get_loader` in `pkgutil` (GH-98520)Nikita Sobolev2023-05-032-0/+12
| | | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-103590: mention that the change is included in 3.11.4 and clarify except* ↵Irit Katriel2023-05-032-3/+6
| | | | documentation (#104095)
* gh-103693: Add convenience variable feature to `pdb` (#103694)Tian Gao2023-05-032-0/+23
|
* gh-103968: Deprecate creating heap types whose metaclass has custom tp_new. ↵Petr Viktorin2023-05-032-2/+44
| | | | | | | | (GH-103972) (That's a mouthful of an edge case!) Co-authored-by: Barney Gale <barney.gale@gmail.com>
* GH-97850: Suppress cross-references to removed ``importlib.util`` functions ↵Adam Turner2023-05-033-7/+7
| | | | | | | | | (#104134) `importlib.utils` -> `importlib.util` in a few places --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-97850: Suppress cross-references to the removed ``module_repr`` method ↵Adam Turner2023-05-035-9/+9
| | | | | (#104133) Suppress cross-references to ``module_repr``
* GH-98040: Suppress cross-references to the removed ``imp`` module (#104131)Adam Turner2023-05-0310-18/+19
| | | Suppress cross-references to imp
* gh-98040: Remove find_loader, find_module and other deprecated APIs (#98059)Barry Warsaw2023-05-0312-222/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove deprecated classes from pkgutil * Remove some other PEP 302 obsolescence * Use find_spec instead of load_module * Remove more tests of PEP 302 obsolete APIs * Remove another bunch of tests using obsolete load_modules() * Remove deleted names from __all__ * Remove obsolete footnote * imp is removed * Remove `imp` from generated stdlib names * What's new and blurb * Update zipimport documentation for the removed methods * Fix some Windows tests * Remove any test (or part of a test) that references `find_module()`. * Use assertIsNone() / assertIsNotNone() consistently. * Update Doc/reference/import.rst * We don't need pkgutil._get_spec() any more either * test.test_importlib.fixtures.NullFinder * ...BadLoaderFinder.find_module * ...test_api.InvalidatingNullFinder.find_module * ...test.test_zipimport test of z.find_module * Suppress cross-references to find_loader and find_module * Suppress cross-references to Finder * Suppress cross-references to pkgutil.ImpImporter and pkgutil.ImpLoader --------- Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* gh-82012: Deprecate bitwise inversion (~) of bool (#103487)Tim Hoffmann2023-05-033-22/+40
| | | | | | | | | | | | | | The bitwise inversion operator on bool returns the bitwise inversion of the underlying int value; i.e. `~True == -2` such that `bool(~True) == True`. It's a common pitfall that users mistake `~` as negation operator and actually want `not`. Supporting `~` is an artifact of bool inheriting from int. Since there is no real use-case for the current behavior, let's deprecate `~` on bool and later raise an error. This removes a potential source errors for users. Full reasoning: https://github.com/python/cpython/issues/82012#issuecomment-1258705971 Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-101100: Fix Sphinx warnings in `curses` and `curses.ascii` modules (#103457)Hugo van Kemenade2023-05-033-468/+500
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* GH-89769: `pathlib.Path.glob()`: do not follow symlinks when checking for ↵andrei kulakov2023-05-031-6/+9
| | | | | precise match (GH-29655) Co-authored-by: Barney Gale <barney.gale@gmail.com>
* gh-65022: Fix description of tuple return value in copyreg (#103892)Shantanu2023-05-021-1/+1
|
* gh-103743: Add PyUnstable_Object_GC_NewWithExtraData (GH-103744)Jurica Bradarić2023-05-021-1/+20
| | | | Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* GH-103484: Fix redirected permanently URLs (#104001)Rafael Fontenelle2023-05-0239-59/+77
| | | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
* Improve assert_type phrasing (#104081)Shantanu2023-05-021-3/+4
| | | | | | | | | I'd like to make the fact that this does nothing at runtime really obvious, since I suspect this is unintuitive for users who are unfamiliar with static type checking. I thought of this because of https://discuss.python.org/t/add-arg-check-type-to-types/26384 wherein I'm skeptical that the user really did want `assert_type`.
* gh-97696: asyncio eager tasks factory (#102853)Itamar Ostricher2023-05-012-0/+41
| | | | Co-authored-by: Jacob Bower <jbower@meta.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* gh-100458: Clarify Enum.__format__() change of mixed-in types in the ↵Anže Pečar2023-05-011-13/+5
| | | | | | whatsnew/3.11.rst (GH-100387) Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com> Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* Adjust expression from `==` to `!=` in alignment with the meaning of the ↵Ben Faulhaber2023-05-011-1/+1
| | | | paragraph. (GH-104021)
* gh-88773: Added teleport method to Turtle library (#103974)Liam Gersten2023-04-301-11/+42
| | | | | | | | | | | Add a `teleport` method to `turtle` module turtle instances that acts a lot like `goto`, _but_ ensures the pen is up while warping to the new position to and can control shape filling behavior as part of the jump. Based on an educator user feature request. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Replace Netlify with Read the Docs build previews (#103843)Hugo van Kemenade2023-04-302-10/+6
| | | | | Co-authored-by: Oleg Iarygin <dralife@yandex.ru> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-103793: Defer formatting task name (#103767)Itamar Ostricher2023-04-291-0/+3
| | | | | | | | | | | | | The default task name is "Task-<counter>" (if no name is passed in during Task creation). This is initialized in `Task.__init__` (C impl) using string formatting, which can be quite slow. Actually using the task name in real world code is not very common, so this is wasted init. Let's defer this string formatting to the first time the name is read (in `get_name` impl), so we don't need to pay the string formatting cost if the task name is never read. We don't change the order in which tasks are assigned numbers (if they are) -- the number is set on task creation, as a PyLong instead of a formatted string. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-103636: issue warning for deprecated calendar constants (#103833)Prince Roshan2023-04-292-0/+61
| | | | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* Various small fixes to dis docs (#103923)Jelle Zijlstra2023-04-291-78/+79
| | | | | | | | - Fix description of MAKE_CELL, which appeared to be inverted from the actual behavior - Fix stray ".:" (sphinx-contrib/sphinx-lint#63) - Fix inconsistent indentation - Add some missing code blocks - Slight style improvements
* gh-98040: Remove just the `imp` module (#98573)Barry Warsaw2023-04-288-420/+8
|
* gh-101100: Add reference doc for __post_init__ (#103818)Olga Matoula2023-04-281-22/+23
| | | Signed-off-by: Olga Matoula <olgamatoula@gmail.com>
* Update itertool recipe: polynomial_from_roots() (GH-103973)Raymond Hettinger2023-04-281-5/+4
|
* gh-100021: Document that sqlite3's executemany() discards resulting rows ↵Erlend E. Aasland2023-04-281-2/+9
| | | | (#103939)
* gh-83925: Make asyncio.subprocess communicate similar to non-asyncio (#18650)Marek Marczykowski-Górecki2023-04-281-2/+7
| | | | | | | subprocess's communicate(None) closes stdin of the child process, after sending no (extra) data. Make asyncio variant do the same. This fixes issues with processes that waits for EOF on stdin before continuing.
* Docs: fix dunders with too many underscores (#103955)Erlend E. Aasland2023-04-272-2/+2
|
* GH-103903: Test the minimum Sphinx version in CI (#103904)Adam Turner2023-04-273-5/+44
|
* GH-103857: Deprecate utcnow and utcfromtimestamp (#103858)Paul Ganssle2023-04-271-0/+8
| | | | | Using `datetime.datetime.utcnow()` and `datetime.datetime.utcfromtimestamp()` will now raise a `DeprecationWarning`. We also have removed our internal uses of these functions and documented the change.
* gh-103590: do not wrap a single exception raised from a try-except* (#103665)Irit Katriel2023-04-271-0/+5
|
* gh-103883: Doc: Move PyUnicode_FromObject doc (#103913)Inada Naoki2023-04-271-9/+9
| | | This API is one of Unicode creator APIs.
* gh-62432: unittest runner: Exit code 5 if no tests were run (#102051)Stefano Rivera2023-04-271-1/+2
| | | | | | | | As discussed in https://discuss.python.org/t/unittest-fail-if-zero-tests-were-discovered/21498/7 It is common for test runner misconfiguration to fail to find any tests, This should be an error. Fixes: #62432
* gh-103629: Update typing.Unpack docs in compliance with PEP 692 (#103894)Franek Magiera2023-04-262-2/+56
|
* gh-48241: Clarify URL needs to be encoded when provided to urlopen and ↵Michael Blahay2023-04-261-3/+3
| | | | | | Request (#103855) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-103489: Add get/set config methods to sqlite3.Connection (#103506)Erlend E. Aasland2023-04-262-0/+61
|
* gh-103015: Add entrypoint keyword param to sqlite3.Connection.load_extension ↵Erlend E. Aasland2023-04-262-2/+25
| | | | (#103073)
* gh-101879: docs - italicize argument in smtplib.SMPT() description (#101886)Owain Davies2023-04-261-5/+5
|
* gh-91441: Clarify the docs of asyncio.loop.subprocess_exec() (#91442)July Tikhonov2023-04-261-9/+8
| | | | | | | | Clarify the docs of asyncio.loop.subprocess_exec() Clarify the documentation of stdin, stdout and stderr arguments of asyncio.loop.subprocess_exec(). Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* Docs build: Add upper bounds to transitive dependencies (#103860)Alex Waygood2023-04-262-0/+34
|
* gh-101786: Clarify docs that asyncio.Server.sockets is a socket-like ↵Carol Willing2023-04-261-2/+3
| | | | | TransportSocket (#103877) Clarify that asyncio.Server.sockets is a socket-like TransportSocket
* gh-103721: Improve cross-references for generic-alias docs (#103838)Alex Waygood2023-04-251-0/+7
| | | | | | | | | Cc. @adriangb The "stub documentation" in `types.rst` does already link to the in-depth docs in `stdtypes.rst`, but the link isn't obvious for new users. It deserves to be made more prominent. - Issue: https://github.com/python/cpython/issues/103721
* gh-51574: Make tempfile.mkdtemp() always return absolute paths (#94612)Samuel Sloniker2023-04-252-2/+7
| | | | Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
* DOC: remove reference to OpenSolaris (#102671)partev2023-04-251-7/+0
|
* gh-103765: Remove pkgutil.rst from .nitignore (GH-103797)Jaime Alonso Lorenzo2023-04-241-1/+0
|
* gh-103810: Fix broken references in dataclasses (#103811)Olga Matoula2023-04-242-73/+74
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-103673: Add missing ForkingUnixStreamServer and ForkingUnixDatagramServer ↵jb21702023-04-241-0/+7
| | | | | | | | | | | | | | | | socketservers (#103674) sockserver gains ForkingUnixStreamServer and ForkingUnixDatagramServer classes for consistency with all of the others. Ironically these existed but were buried in our test suite. Addresses #103673 <!-- gh-issue-number: gh-103673 --> * Issue: gh-103673 <!-- /gh-issue-number --> --------- Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-87729: add LOAD_SUPER_ATTR instruction for faster super() (#103497)Carl Meyer2023-04-241-0/+18
| | | | | This speeds up `super()` (by around 85%, for a simple one-level `super().meth()` microbenchmark) by avoiding allocation of a new single-use `super()` object on each use.