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

gh-122937: Add docs about annotations evaluation order#123060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
sobolevn wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromsobolevn:issue-122937

Conversation

sobolevn
Copy link
Member

@sobolevnsobolevn commentedAug 16, 2024
edited by github-actionsbot
Loading


1. Value ``'miss-islington'`` will be assigned
to name ``username`` in ``User`` class scope
2. Name ``str`` is evaluated in the annotated assignment statement

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is incorrect in Python 3.14.

Copy link
MemberAuthor

@sobolevnsobolevnAug 16, 2024
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Oh, yes, right! I guess we need two sections: one for 3.14+ and one for older versions.

How would you best describe the current approach? With a PEP link maybe?

Copy link
Member

@terryjreedyterryjreedy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I can only say that the proposed text looks fine, subject to it being true. Given Jelle's comment, we need separate main and branch patches, separately reviewed (or apply this and followup with a main-only patch). I believe the main patch should have a Changed note.

@hugovkhugovk removed the needs backport to 3.12only security fixes labelApr 10, 2025
@serhiy-storchakaserhiy-storchaka added the needs backport to 3.14bugs and security fixes labelMay 8, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@JelleZijlstraJelleZijlstraJelleZijlstra left review comments

@terryjreedyterryjreedyterryjreedy left review comments

@AlexWaygoodAlexWaygoodAwaiting requested review from AlexWaygood

Assignees
No one assigned
Labels
awaiting core reviewdocsDocumentation in the Doc dirneeds backport to 3.13bugs and security fixesneeds backport to 3.14bugs and security fixesskip news
Projects
Status: Todo
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@sobolevn@JelleZijlstra@terryjreedy@hugovk@serhiy-storchaka

[8]ページ先頭

©2009-2025 Movatter.jp