Re: BitVector read-from-file Question

2008-03-16 Thread Gabriel Genellina
En Mon, 10 Mar 2008 14:06:07 -0200, Michael Wieher <[EMAIL PROTECTED]> escribi�: > I'm trying to read in data from large binary files using BitVector > (thanks > btw, for whoever mentioned it on the list, its nice) > > I'll be reading the data in as requested by the user, in (relatively) > s

Re: BitVector

2008-03-10 Thread Ross Ridge
DanielJohnson <[EMAIL PROTECTED]> wrote: >I am trying to solve a genetic algorithm problem where I want to read >a bitvector of very large size (say 1) and manipulate bits based >on certain algorithms. > >I am a newbie in Python. What data structure are good to read such >huge data set. Are th

Re: BitVector

2008-03-10 Thread Paul Rubin
John Machin <[EMAIL PROTECTED]> writes: > Bitwise operations like & | ^ << >> etc work on long integers. This > happens at C speed. The problem is if you want to set a bit, you have to allocate a whole new long integer. -- http://mail.python.org/mailman/listinfo/python-list

Re: BitVector

2008-03-10 Thread John Machin
On Mar 10, 3:26 pm, DanielJohnson <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to solve a genetic algorithm problem where I want to read > a bitvector of very large size (say 1) and manipulate bits based > on certain algorithms. > > I am a newbie in Python. What data structure are good to r

Re: BitVector

2008-03-09 Thread castironpi
> > I am trying to solve a genetic algorithm problem where I want to read > > a bitvector of very large size (say 1) and manipulate bits based > > on certain algorithms. Here's one on the Python website: http://search.live.com/results.aspx?q=python+bitvector&src=IE-SearchBox => http://pypi.pyt

Re: BitVector

2008-03-09 Thread Gabriel Genellina
On 10 mar, 01:26, DanielJohnson <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to solve a genetic algorithm problem where I want to read > a bitvector of very large size (say 1) and manipulate bits based > on certain algorithms. > > I am a newbie in Python. What data structure are good to rea