[Python-Dev] RFC: Add a new builtin strarray type to Python?

Victor Stinner victor.stinner at haypocalc.com
Mon Oct 3 20:07:36 CEST 2011

Le lundi 3 octobre 2011 18:04:57, vous avez écrit :
> Why are you checking, in unicode_resizable, whether the string is from
> unicode_latin1? If it is, then it should have a refcount of at least 2,
> so the very first test in the function should already exclude it.

There is also a test on unicode_empty. Singletons should not be modified, but 
you are right, ref count is always at least 2 (when calling 

Changeset 6fbc5e9141fc replaces tests by assertions.


More information about the Python-Dev mailing list