summaryrefslogtreecommitdiff
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* gh-103606: Improve error message from logging.config.FileConfig (GH-103628)HEADmainPrince Roshan2023-05-181-0/+8
|
* gh-102153: Start stripping C0 control and space chars in `urlsplit` (#102508)Illia Volochii2023-05-171-2/+44
| | | | | | | | | `urllib.parse.urlsplit` has already been respecting the WHATWG spec a bit #25595. This adds more sanitizing to respect the "Remove any leading C0 control or space from input" [rule](https://url.spec.whatwg.org/#url-parsing:~:text=Remove%20any%20leading%20and%20trailing%20C0%20control%20or%20space%20from%20input.) in response to [CVE-2023-24329](https://nvd.nist.gov/vuln/detail/CVE-2023-24329). --------- Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
* gh-104539: Fix indentation error in logging.config.rst (#104545)Jesper Noordsij2023-05-161-1/+1
| | | Fix indentation error in logging.config.rst
* gh-69152: add method get_proxy_response_headers to HTTPConnection class ↵Alexey Namyotkin2023-05-161-0/+11
| | | | | | | | | | (#104248) Add http.client.HTTPConnection method get_proxy_response_headers() - this is a followup to https://github.com/python/cpython/pull/26152 which added it as a non-public attribute. This way we don't pre-compute a headers dictionary that most users will never access. The new method is properly public and documented and triggers full proxy header parsing into a dict only when actually called. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-103763: Implement PEP 695 (#103764)Jelle Zijlstra2023-05-151-0/+3
| | | | | | | | | | | | | | This implements PEP 695, Type Parameter Syntax. It adds support for: - Generic functions (def func[T](): ...) - Generic classes (class X[T](): ...) - Type aliases (type X = ...) - New scoping when the new syntax is used within a class body - Compiler and interpreter changes to support the new syntax and scoping rules Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Eric Traut <eric@traut.com> Co-authored-by: Larry Hastings <larry@hastings.org> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-67056: document that registering/unregistering an atexit func from within ↵Irit Katriel2023-05-151-0/+3
| | | | an atexit func is undefined (#104473)
* gh-104487: PYTHON_FOR_REGEN must be minimum Python 3.10 (#104488)Erlend E. Aasland2023-05-151-0/+2
| | | Also include Python 3.12 in the list of accepted versions.
* gh-104337: Clarify random.gammavariate doc entry (#104410)Terry Jan Reedy2023-05-141-3/+6
| | | | | * gh-104337: Clarify random.gammavariate doc entry * Fix parameter markup.
* Minor improvements to typing docs (#104465)Jelle Zijlstra2023-05-141-4/+6
|
* gh-91896: Revert some very noisy DeprecationWarnings for `ByteString` (#104424)Alex Waygood2023-05-132-6/+3
|
* Add a mention of PYTHONBREAKPOINT to breakpoint() docs (#104430)Ned Batchelder2023-05-131-0/+7
|
* gh-91896: Fixup some docs issues following ByteString deprecation (#104422)Alex Waygood2023-05-122-1/+7
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-104389: Add 'unused' keyword to Argument Clinic C converters (#104390)Erlend E. Aasland2023-05-121-0/+3
| | | | | | | | | Use the unused keyword param in the converter to explicitly mark an argument as unused: /*[clinic input] SomeBaseClass.stubmethod flag: bool(unused=True) [clinic start generated code]*/
* gh-104301: Allow leading whitespace in disambiguated pdb statements (#104342)James Gerity2023-05-111-3/+11
|
* gh-101117: Improve accuracy of sqlite3.Cursor.rowcount docs (#104287)Erlend E. Aasland2023-05-111-1/+4
| | | | The SQLite C API sqlite3_changes() can only be relied upon when the current active statement has been run to completion.
* gh-104010: Separate and improve docs for `typing.get_origin` and ↵chgnrdv2023-05-101-9/+22
| | | | | | | | | `typing.get_args` (#104013) * separate documentation and examples for both functions * add examples demonstrating behaviour with unsupported types * document return value of `get_origin` for `ParamSpecArgs` and `ParamSpecKwargs` instances Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-103960: Dark mode: invert image brightness (#103983)Hugo van Kemenade2023-05-103-0/+3
|
* gh-102327: Extend docs for "url" and "headers" parameters to ↵David Foster2023-05-091-2/+18
| | | | | | | | | | | HTTPConnection.request() Added example on how to use the HTTPConnection object for making GET request. Original issue: https://github.com/python/cpython/issues/102327 --------- Co-authored-by: Éric <earaujo@caravan.coop>
* gh-97696 Add documentation for get_coro() behavior with eager tasks (#104304)Jacob Bower2023-05-091-0/+11
|
* gh-97933: (PEP 709) inline list/dict/set comprehensions (#101441)Carl Meyer2023-05-092-0/+32
| | | | Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-97696: Move around and update the whatsnew entry for asyncio eager task ↵Itamar Ostricher2023-05-091-5/+5
| | | | factory (#104298)
* gh-90656: Add platform triplets for 64-bit LoongArch (LA64) (#30939)Zhang Na2023-05-091-0/+8
| | | | Signed-off-by: Zhang Na <zhangna@loongson.cn> Co-authored-by: WANG Xuerui <git@xen0n.name>
* GH-104284: Fix documentation gettext build (#104296)Adam Turner2023-05-081-10/+10
|
* GH-104145: Use fully-qualified cross reference types for the bisect module ↵Adam Turner2023-05-081-10/+12
| | | | (#104172)
* gh-102500: Remove mention of bytes shorthand (#104281)Shantanu2023-05-081-6/+3
| | | | | | | The bytes shorthand was removed in PEP 688: https://peps.python.org/pep-0688/#no-special-meaning-for-bytes I also remove the reference to `collections.abc.ByteString`, since that object is deprecated (#91896) and has different semantics (#102092)
* gh-97696: Improve and fix documentation for asyncio eager tasks (#104256)Itamar Ostricher2023-05-081-1/+18
|
* gh-103193: cache calls to `inspect._shadowed_dict` in ↵Alex Waygood2023-05-071-3/+4
| | | | | `inspect.getattr_static` (#104267) Co-authored-by: Carl Meyer <carl@oddbird.net>
* gh-104254: Document the optional keyword-only "context" argument to Task ↵Itamar Ostricher2023-05-061-4/+8
| | | | | constructor (#104251) (This was added in 3.11. It was already documented for `create_task()`, but not for `Task()`.)
* gh-90953: Emit deprecation warnings for `ast` features deprecated in Python ↵Alex Waygood2023-05-061-0/+13
| | | | | | | 3.8 (#104199) `ast.Num`, `ast.Str`, `ast.Bytes`, `ast.Ellipsis` and `ast.NameConstant` now all emit deprecation warnings on import, access, instantation or `isinstance()` checks. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* GH-97950: Use new-style index directive ('builtin') (#104164)Adam Turner2023-05-0623-77/+77
| | | | | | | | | | | | | * Uncomment builtin removal in pairindextypes * Use new-style index directive ('builtin') - C API * Use new-style index directive ('builtin') - Extending * Use new-style index directive ('builtin') - Library * Use new-style index directive ('builtin') - Reference * Use new-style index directive ('builtin') - Tutorial
* gh-102215: importlib documentation cleanupsSam Morris2023-05-062-10/+10
|
* GH-100479: Add `pathlib.PurePath.with_segments()` (GH-103975)Barney Gale2023-05-052-2/+31
| | | | | Add `pathlib.PurePath.with_segments()`, which creates a path object from arguments. This method is called whenever a derivative path is created, such as from `pathlib.PurePath.parent`. Subclasses may override this method to share information between path objects. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-64658: Expand Argument Clinic return converter docs (#104175)Erlend E. Aasland2023-05-051-13/+28
|
* gh-104112: link from cached_property docs to method-caching FAQ (#104113)Carl Meyer2023-05-041-12/+4
| | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-102500: Add PEP 688 and 698 to the 3.12 release highlights (#104174)Hugo van Kemenade2023-05-041-2/+6
|
* GH-81079: Add case_sensitive argument to `pathlib.Path.glob()` (GH-102710)Barney Gale2023-05-041-2/+18
| | | | | | This argument allows case-sensitive matching to be enabled on Windows, and case-insensitive matching to be enabled on Posix. Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* gh-91896: Deprecate collections.abc.ByteString (#102096)Shantanu2023-05-043-2/+12
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-102500: Document PEP 688 (#102571)Jelle Zijlstra2023-05-044-1/+95
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-96534: socketmodule: support FreeBSD divert(4) socket (#96536)Gleb Smirnoff2023-05-041-0/+11
|
* GH-97950: Use new-style index directive ('statement') (#104162)Adam Turner2023-05-049-53/+53
|
* GH-97950: Use new-style index directive ('exception') (#104160)Adam Turner2023-05-043-13/+13
|
* GH-97950: Use new-style index directive ('object') (#104158)Adam Turner2023-05-0431-143/+143
| | | | | | | | | | | * Uncomment object removal in pairindextypes * Use new-style index directive ('object') - C API * Use new-style index directive ('object') - Library * Use new-style index directive ('object') - Reference * Use new-style index directive ('object') - Tutorial
* GH-97950: Use new-style index directive ('operator') (#104156)Adam Turner2023-05-043-54/+54
|
* GH-97950: Use new-style index directive ('keyword') (#104153)Adam Turner2023-05-044-28/+28
| | | | | * Uncomment keyword removal in pairindextypes * Use new-style index directive ('keyword') - Reference
* GH-97950: Use new-style index directive ('module') (#103996)Adam Turner2023-05-0433-69/+65
| | | | | | | | | | | | | | | | | * Use new-style index directive ('module') - C API * Use new-style index directive ('module') - Library * Use new-style index directive ('module') - Reference * Use new-style index directive ('module') - Tutorial * Uncomment module removal in pairindextypes * Use new-style index directive ('module') - C API * Use new-style index directive ('module') - Library * Use new-style index directive ('module') - Reference
* gh-103509: PEP 697 -- Limited C API for Extending Opaque Types (GH-103511)Petr Viktorin2023-05-046-8/+132
| | | | Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* 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
|