[Python-Dev] [Python-checkins] cpython: Migrate str.expandtabs to the new API (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Tue Oct 4 18:45:55 CEST 2011
- Previous message: [Python-Dev] Using PEP384 Stable ABI for the lzma extension module
- Next message: [Python-Dev] [Python-checkins] cpython: Migrate str.expandtabs to the new API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Migrate str.expandtabs to the new API
This needs
if (PyUnicode_READY(self) == -1)
return NULL;
right after the ParseTuple call. In most cases, the check will be a noop. But if it's not, omitting it will make expandtabs have no effect, since the string length will be 0 (in a debug build, you also get an assertion failure).
Regards, Martin
- Previous message: [Python-Dev] Using PEP384 Stable ABI for the lzma extension module
- Next message: [Python-Dev] [Python-checkins] cpython: Migrate str.expandtabs to the new API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]