summaryrefslogtreecommitdiff
path: root/Objects/stringlib/unicodedefs.h
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2007-10-16 06:31:30 +0000
committerGregory P. Smith <greg@mad-scientist.com>2007-10-16 06:31:30 +0000
commit60d241f135f10312f5a638846659d7e471f6cac9 (patch)
tree620abe8a5e99620cec51a3476ea96c2459956e70 /Objects/stringlib/unicodedefs.h
parent3d2fd7f923c35fe61c0f26f2ae150d73a42859b9 (diff)
downloadcpython-git-60d241f135f10312f5a638846659d7e471f6cac9.tar.gz
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/stringlib/unicodedefs.h b/Objects/stringlib/unicodedefs.h
index 25c1d4fca4..fa6140f224 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)