summaryrefslogtreecommitdiffstats
path: root/Include/bytesobject.h
Commit message (Collapse)AuthorAgeFilesLines
* Add asserts to PyBytes_AS_STRING and PyBytes_GET_SIZE.Guido van Rossum2007-06-141-2/+2
|
* Rough and dirty job -- allow concatenation of bytes and arbitraryGuido van Rossum2007-04-131-0/+1
| | | | | | buffer-supporting objects (Unicode always excluded), and also of str and bytes. (For some reason u"" + b"" doesn't fail, I'll investigate later.)
* Optimizations for bytes reallocation.Guido van Rossum2006-05-051-0/+1
| | | | | | | | | This uses up to 12.5% overallocation, not entirely unlike list_resize(). Could probably use more tweaks for odd allocation patterns, TBD. Also add __alloc__() method which returns the actually allocated size. PS. I'm now convinced that we need something like "".join(); later.
* Added much functionality to the bytes type.Guido van Rossum2006-04-241-2/+3
| | | | Change file.readinto() to require binary mode.
* Here is a bytes type. It's very minimal but it's a start.Guido van Rossum2006-04-221-0/+47