kutsurak / python-bitstring

Automatically exported from code.google.com/p/python-bitstring
0 stars 0 forks source link

Add clear() and copy() methods #128

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Python 3.3 has introduced these methods for bytearray objects (and lists). As 
we're trying to mimic bytearray objects where practical it would make sense to 
add copy() to all classes and clear() to the mutable classes.

Original issue reported on code.google.com by dr.scott...@gmail.com on 30 Sep 2012 at 6:25

GoogleCodeExporter commented 9 years ago
...  of course copy() should also only apply to the mutable classes. No need to 
copy an immutable object!

Original comment by dr.scott...@gmail.com on 1 Oct 2012 at 9:24

GoogleCodeExporter commented 9 years ago

Original comment by dr.scott...@gmail.com on 22 Feb 2013 at 5:53

GoogleCodeExporter commented 9 years ago
Done in r.965

Original comment by dr.scott...@gmail.com on 25 Feb 2013 at 5:51