[Python-Dev] Why does _PyUnicode_FromId return a new reference?
Antoine Pitrou
solipsis at pitrou.net
Sat Nov 5 23:26:11 CET 2011
More information about the Python-Dev mailing list
Sat Nov 5 23:26:11 CET 2011
- Previous message: [Python-Dev] PyDict_Get/SetItem and dict subclasses
- Next message: [Python-Dev] Why does _PyUnicode_FromId return a new reference?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Given it returns an eternal object, and it's almost always used temporarily (for attribute lookup, string joining, etc.), it would seem more practical for it to return a borrowed reference. Regards Antoine.
- Previous message: [Python-Dev] PyDict_Get/SetItem and dict subclasses
- Next message: [Python-Dev] Why does _PyUnicode_FromId return a new reference?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list