]> granicus.if.org Git - python/commit
For PEP3137: Adds missing methods to the mutable PyBytes object (soon
authorGregory P. Smith <greg@mad-scientist.com>
Tue, 16 Oct 2007 06:31:30 +0000 (06:31 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Tue, 16 Oct 2007 06:31:30 +0000 (06:31 +0000)
commit60d241f135f10312f5a638846659d7e471f6cac9
tree620abe8a5e99620cec51a3476ea96c2459956e70
parent3d2fd7f923c35fe61c0f26f2ae150d73a42859b9
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
12 files changed:
Include/bytes_methods.h [new file with mode: 0644]
Lib/test/buffer_tests.py [new file with mode: 0644]
Lib/test/test_bytes.py
Makefile.pre.in
Objects/bytes_methods.c [new file with mode: 0644]
Objects/bytesobject.c
Objects/stringlib/README.txt
Objects/stringlib/ctype.h [new file with mode: 0644]
Objects/stringlib/find.h
Objects/stringlib/transmogrify.h [new file with mode: 0644]
Objects/stringlib/unicodedefs.h
Objects/stringobject.c