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 
unicode_resizable).

Changeset 6fbc5e9141fc replaces tests by assertions.

Victor
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to