Skip to content

type(None).__module__ returns wrong module #128197

Closed as not planned
Closed as not planned
@rafalkrupinski

Description

@rafalkrupinski

Bug report

Bug description:

t=type(None)
print(f'{t.__module__}.{t.__name__}')
# prints builtins.NoneType
# actual module: types

CPython versions tested on:

3.12, 3.13

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-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