Skip to content

Modification of builtin types using classes #107141

Closed as not planned
Closed as not planned
@PlaceReporter99

Description

@PlaceReporter99

Feature or enhancement

I would like it so that when I do something like class str(builtin=True), any functions and other things defined in the class apply to the built-in class, and therefore literals.

Pitch

With a built-in type, you may decide to not implement a few class methods for that type. Adding this would allow users who want those class methods to implement them.

Previous discussion

https://discuss.python.org/t/ability-to-modify-python-types-by-simple-class-declaration/30150

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions