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

Source locations too broad for list comprehension iterable expression #123142

Closed
Assignees
iritkatriel
Labels
3.12only security fixes3.13bugs and security fixes3.14bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
@iritkatriel

Description

@iritkatriel

Bug report

Reported here:#120330 (comment)

classFoo:def__iter__(self):assertFalsea= [xforxinFoo()]

output (Python 3.12.5):

Traceback (mostrecentcalllast):File"/home/frank/projects/executing/codi.py",line5,in<module>a= [xforxinFoo()]^^^^^^^^^^^^^^^^^^File"/home/frank/projects/executing/codi.py",line3,in__iter__assertFalse^^^^^AssertionError

Linked PRs

Metadata

Metadata

Assignees

Labels

3.12only security fixes3.13bugs and security fixes3.14bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp