Staging
v0.5.1
https://github.com/python/cpython
Revision 0afff388ce38cc0a42ef6c8b9a3f815997ee0103 authored by Marc-André Lemburg on 21 September 2000, 21:08:30 UTC, committed by Marc-André Lemburg on 21 September 2000, 21:08:30 UTC
"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.
1 parent 3578b77
History
Tip revision: 0afff388ce38cc0a42ef6c8b9a3f815997ee0103 authored by Marc-André Lemburg on 21 September 2000, 21:08:30 UTC
Special case the "s#" PyArg_Parse() token for Unicode objects:
Tip revision: 0afff38
File Mode Size
BeOS
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.cvsignore -rw-r--r-- 79 bytes
.hgtags -rw-r--r-- 1.6 KB
LICENSE -rw-r--r-- 4.9 KB
Makefile.in -rw-r--r-- 17.5 KB
README -rw-r--r-- 34.4 KB
acconfig.h -rw-r--r-- 5.5 KB
config.h.in -rw-r--r-- 16.1 KB
configure -rwxr-xr-x 167.8 KB
configure.in -rw-r--r-- 33.3 KB
install-sh -rwxr-xr-x 2.2 KB

README

back to top