[Python-Dev] RFC: Add a new builtin strarray type to Python? (original) (raw)
Victor Stinner victor.stinner at haypocalc.com
Mon Oct 3 20:07:36 CEST 2011
- Previous message: [Python-Dev] RFC: Add a new builtin strarray type to Python?
- Next message: [Python-Dev] RFC: Add a new builtin strarray type to Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Le lundi 3 octobre 2011 18:04:57, vous avez écrit :
Why are you checking, in unicoderesizable, whether the string is from unicodelatin1? 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
- Previous message: [Python-Dev] RFC: Add a new builtin strarray type to Python?
- Next message: [Python-Dev] RFC: Add a new builtin strarray type to Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]