Mercurial > cpython-lru_cache-weakref
comparison Python/errors.c @ 14732:336a6179e059 legacy-trunk
Special case the "s#" PyArg_Parse() token for Unicode objects:
"s#" will now return a pointer to the default encoded string data
of the Unicode object instead of a pointer to the raw UTF-16
data.
The latter is still available via PyObject_AsReadBuffer().
The patch also adds an optimization for string objects which is
based on the fact that string objects return the raw character data
for getreadbuffer access and are always single-segment.
| author | Marc-André Lemburg <mal@egenix.com> |
|---|---|
| date | Thu, 21 Sep 2000 21:08:30 +0000 |
| parents | 6f6f965c5e2d |
| children | a2fcc487b9da |
comparison
equal
deleted
inserted
replaced
| 14731:f1abe03b2f16 | 14732:336a6179e059 |
|---|
