-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Add __name__ to property #101860
Copy link
Copy link
Closed
Labels
3.13bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
Projects
Status
Done
It would be very handy if this worked, so properties can be introspected the same way as functions, classmethods, etc. Name can be simply taken from
fgetthe same way this is done for__isabstractmethod__.Linked PRs
property.__name__#123399property.__name__(GH-123399) #123428