Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 72558:6da962d77eb3
remove "fast-path" for (i)adding strings
These were just an artifact of the old unicode concatenation hack and likely
just penalized other kinds of adding. Also, this fixes __(i)add__ on string
subclasses.
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Fri, 30 Sep 2011 21:31:21 -0400 |
| parents | 6f6f965c5e2d |
| children |
line wrap: on
line source
#include "Python.h" #ifndef PLATFORM #define PLATFORM "unknown" #endif const char * Py_GetPlatform(void) { return PLATFORM; }
