Guido van Rossum
2018831b2b
Adding bytes.join() -- a class methods that concatenates an iterable of bytes.
...
The name and API are questionable, but the functionality isn't.
2006-05-05 15:15:40 +00:00
Guido van Rossum
a0867f79bb
Optimizations for bytes reallocation.
...
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.
2006-05-05 04:34:18 +00:00
Guido van Rossum
13e57219d3
Implement bytes += bytes, bytes *= int, int in bytes, bytes in bytes.
2006-04-27 22:54:26 +00:00
Guido van Rossum
d624f18a21
Added much functionality to the bytes type.
...
Change file.readinto() to require binary mode.
2006-04-24 13:47:05 +00:00
Guido van Rossum
e06b6b8ff5
Fix a leak and a buglet discovered by Thomas.
...
Get rid of silly lambdas in the unit test suite.
Add a TODO list to the unit test suite (TDD style).
2006-04-23 07:43:54 +00:00
Guido van Rossum
4dfe8a1131
Here is a bytes type. It's very minimal but it's a start.
2006-04-22 23:28:04 +00:00