mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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
This commit is contained in:
parent
3d2fd7f923
commit
60d241f135
12 changed files with 1595 additions and 1079 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue