Source

pypy / pypy / objspace / std / bytearraytype.py

Author Commit Message Labels Comments Date
Philip Jenvey
cleanup
Amaury Forgeot d'Arc
Better presentation of the docstring
Amaury Forgeot d'Arc
Add space argument to all instances of w_obj.getdict()
Branches
getdict-signature
Amaury Forgeot d'Arc
kill most unwrap_spec in objspace
Branches
improve-unwrap_spec
Michael Foord
(mfoord) revert changes to space.bufferstr_w and provide new buffer api by new space function
Michael Foord
(mfoord) remove buffer interface support from unicodeobject and handle it specially in buffer constructor
Branches
bytearray
Michael Foord
(lac, mfoord) bytearray initialisation now done in __init__ not __new__ bytearray.__new__ takes arbitrary args to allow subclassing and overriding __init__ only
Branches
bytearray
Michael Foord
(lac, mfoord) bytearray.strip / lstrip / rstrip work with memoryviews
Branches
bytearray
Michael Foord
(mfoord) bytearray.reverse
Branches
bytearray
Michael Foord
(mfoord) implement bytearray.remove
Branches
bytearray
Michael Foord
(mfoord, holger) implement bytearray.pop
Branches
bytearray
Michael Foord
(mfoord) implement bytearray.insert
Branches
bytearray
Michael Foord
(mfoord, antocuni) implement bytearray.fromhex
holger krekel
(mfoord, holger) recognize unicode/errors arg for bytearray constructor
holger krekel
(mfoord, holger) unify implementation of bytearray extend/new (thanks amaury), also fix line endings another time
Michael Foord
(jacob, mfoord) fix line endings in bytearrayobject.py and bytearraytype.py
Michael Foord
(jacob, mfoord) bytearray constructor no longer ignores encoding argument
Michael Foord
(jacob, mfoord) Initial implementation of bytearray.translate
Branches
fast-forward
Amaury Forgeot d'Arc
add bytearray.__reduce__
Branches
fast-forward
Amaury Forgeot d'Arc
Magic in action: it's enough to import str_decode into bytearraytype.py for bytearray.decode() to work!
Branches
fast-forward
Amaury Forgeot d'Arc
bytearray.delslice, bytearray.append
Branches
fast-forward
Amaury Forgeot d'Arc
Implement bytearray.extend
Branches
fast-forward
Amaury Forgeot d'Arc
Enhance bytearray constructor
Branches
fast-forward
Amaury Forgeot d'Arc
Set list.__hash__ is now None, instead of a function that raises TypeError. no_hash_descr() is gone! This fixes isinstance([], _abcoll.Hashable)
Branches
fast-forward
Amaury Forgeot d'Arc
Add string-like methods to bytearray. Not very efficient: we convert to a string, and then back to bytearray...
Branches
fast-forward
Amaury Forgeot d'Arc
Reuse string multimethods for the bytearray object. Delegation (bytearray->str) works nicely, except that some functions still have to return a bytearray.
Branches
fast-forward
Amaury Forgeot d'Arc
Translation fixes
Branches
fast-forward
Amaury Forgeot d'Arc
First implementation of a bytearray object. For now, it's a non mutable array of chars...
Branches
fast-forward