diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2007-10-16 06:31:30 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2007-10-16 06:31:30 (GMT) |
commit | 60d241f135f10312f5a638846659d7e471f6cac9 (patch) | |
tree | 620abe8a5e99620cec51a3476ea96c2459956e70 /Objects/stringlib/README.txt | |
parent | 3d2fd7f923c35fe61c0f26f2ae150d73a42859b9 (diff) | |
download | cpython-60d241f135f10312f5a638846659d7e471f6cac9.zip cpython-60d241f135f10312f5a638846659d7e471f6cac9.tar.gz cpython-60d241f135f10312f5a638846659d7e471f6cac9.tar.bz2 |
For PEP3137: Adds missing methods to the mutable PyBytes object (soon
to be called a buffer). Shares code with stringobject when possible.
Adds unit tests with common code that should be usable to test the PEPs
mutable buffer() and immutable bytes() types.
http://bugs.python.org/issue1261
Diffstat (limited to 'Objects/stringlib/README.txt')
-rw-r--r-- | Objects/stringlib/README.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Objects/stringlib/README.txt b/Objects/stringlib/README.txt index 82a8774..aec3441 100644 --- a/Objects/stringlib/README.txt +++ b/Objects/stringlib/README.txt @@ -32,3 +32,12 @@ STRINGLIB_CHAR* STRINGLIB_STR(PyObject*) returns the pointer to the character data for the given string object (which must be of the right type) + +int STRINGLIB_CHECK_EXACT(PyObject *) + + returns true if the object is an instance of our type, not a subclass. + +STRINGLIB_MUTABLE + + Must be 0 or 1 to tell the cpp macros in stringlib code if the object + being operated on is mutable or not. |