kutsurak / python-bitstring

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

New creation from file strategy. #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At the momement, when a bitstring is created from a file it isn't read into
memory, except if it gets modified. This can create an unexpected moment
when the file gets read and also needs some defensive programming in a
number of places.

Suggest that if a Bits is created from a file then the behaviour stays the
same as currently (and of course a 'Bits' can't be modified so we guarantee
it won't be read into memory). If a BitString is created then it gets read
into memory on creation - the point being that if you use a BitString you
are indicating that you intend to modify it.

This should be less surprising, and easier to program.

Original issue reported on code.google.com by python.bitstring@googlemail.com on 14 Mar 2010 at 9:49

GoogleCodeExporter commented 9 years ago

Original comment by python.bitstring@googlemail.com on 15 Mar 2010 at 8:10

GoogleCodeExporter commented 9 years ago

Original comment by python.bitstring@googlemail.com on 19 Mar 2010 at 11:11

GoogleCodeExporter commented 9 years ago
Done for version 2.0.

Original comment by dr.scott...@gmail.com on 23 May 2010 at 11:03