diff Objects/stringlib/unicodedefs.h @ 43576:697cc31a83f6

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
author Gregory P. Smith <greg@mad-scientist.com>
date Tue, 16 Oct 2007 06:31:30 +0000
parents d842457e4b0e
children 8ed0280c2ab6
line wrap: on
line diff
--- a/Objects/stringlib/unicodedefs.h	Tue Oct 16 00:26:33 2007 +0000
+++ b/Objects/stringlib/unicodedefs.h	Tue Oct 16 06:31:30 2007 +0000
@@ -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)