[Python-Dev] RFC: Add a new builtin strarray type to Python? (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Mon Oct 3 18:04:57 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 ]
I restored this hack in Python 3.3 using PyUnicodeAppend() in ceval.c and by optimizing PyUnicodeAppend() (try to append in-place). str+=str is closer again to ''.join:
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.
Regards, Martin
- 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 ]