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/unicodedefs.h | |
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/unicodedefs.h')
-rw-r--r-- | Objects/stringlib/unicodedefs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/stringlib/unicodedefs.h b/Objects/stringlib/unicodedefs.h index 25c1d4f..fa6140f 100644 --- a/Objects/stringlib/unicodedefs.h +++ b/Objects/stringlib/unicodedefs.h @@ -22,6 +22,8 @@ #define STRINGLIB_CHECK PyUnicode_Check #define STRINGLIB_TOSTR PyObject_Unicode +#define STRINGLIB_WANT_CONTAINS_OBJ 1 + /* STRINGLIB_CMP was defined as: Py_LOCAL_INLINE(int) |