summaryrefslogtreecommitdiff
path: root/Python/strdup.c
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2000-09-21 21:08:30 +0000
committerMarc-André Lemburg <mal@egenix.com>2000-09-21 21:08:30 +0000
commit0afff388ce38cc0a42ef6c8b9a3f815997ee0103 (patch)
tree40bde1198117bfbef75e6cf3f1ebba6a2da32163 /Python/strdup.c
parent3578b77312720061ef3e5a86e3db4f3c968edf56 (diff)
downloadcpython-git-0afff388ce38cc0a42ef6c8b9a3f815997ee0103.tar.gz
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.
Diffstat (limited to 'Python/strdup.c')
0 files changed, 0 insertions, 0 deletions