Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Document PEP 695 #103921

Closed
Closed
Assignees
JelleZijlstra
Labels
3.12only security fixesdocsDocumentation in the Doc dirtopic-typing
@JelleZijlstra

Description

@JelleZijlstra

We should documentPEP-695 for Python 3.12 (issue#103763, PR#103764 for implementation). I am leaving docs out of the PR to avoid complicating an already huge PR with a tight deadline, but let's start thinking about what we need to document:

  • New AST nodes inast.rst
  • Language reference should be updated to include the new grammar changes
  • Language reference should be updated to reflect new scoping rules (https://docs.python.org/3.12/reference/executionmodel.html#naming-and-binding)
  • typing.rst should list the PEP
  • typing.rst should mention thatTypeVar gained aninfer_variance argument and that it now supports lazily evaluated bounds/constraints
  • Examples of generics intyping.rst should use the new syntax
  • typing.rst should document the newTypeAliasType
  • typing.TypeAlias should be mentioned as deprecated (including in the deprecation timeline at the bottom oftyping.rst), and any examples of type aliases should be updated to use the new syntax
  • New opcodes need to be mentioned indis.rst.dis.dis docs should mention new contexts where nested code objects can appear. TheCALL_INTRINSIC_1 and 2 opcodes should mention the new intrinsics.

Linked PRs

Metadata

Metadata

Assignees

Labels

3.12only security fixesdocsDocumentation in the Doc dirtopic-typing

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp