Re: [Python-Dev] Why does _PyUnicode_FromId return a new reference?

2011-11-06 Thread Martin v. Löwis
Am 05.11.2011 23:26, schrieb Antoine Pitrou: 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. For purity reasons: all PyUnicode_From* functions return

Re: [Python-Dev] Why does _PyUnicode_FromId return a new reference?

2011-11-06 Thread Antoine Pitrou
Le 06/11/2011 08:08, Martin v. Löwis a écrit : Am 05.11.2011 23:26, schrieb Antoine Pitrou: 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. For purity

[Python-Dev] Why does _PyUnicode_FromId return a new reference?

2011-11-05 Thread Antoine Pitrou
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. ___ Python-Dev mailing list