Skip to content

no error when accessing __name__ on object with no __name__ attribute #7145

@DetachHead

Description

@DetachHead
class Foo:
    ...

Foo().__name__ # no error, crashes at runtime

playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    addressed in next versionIssue is fixed and will appear in next published versionbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions