Re: csv dictreader

2008-03-19 Thread brnstrmrs
On Mar 19, 2:32 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Mar 19, 1:06 pm, brnstrmrs <[EMAIL PROTECTED]> wrote: > > > > > I am trying to use the dictionary reader to import the data from a csv > > file and create a dictnary from it but just can't se

csv dictreader

2008-03-19 Thread brnstrmrs
I am trying to use the dictionary reader to import the data from a csv file and create a dictnary from it but just can't seem to figure it out. Here is my code: >>>import csv >>>reader = csv.DictReader(open('table.csv')) >>>for row in reader: >>>print row my csv files looks like this: Bytecode,E

struct unpack

2008-03-17 Thread brnstrmrs
If I run: testValue = '\x02\x00' junk = struct.unpack('h', testValue) Everything works but If I run testValue = raw_input("Enter Binary Code..:") inputting at the console '\x02\x00' junk = struct.unpack('h', testValue) It errors out with Traceback (most recent call last): File "/home/nirmal/

scons Buffer.cpp

2008-03-13 Thread brnstrmrs
I am trying to install some libs but can not get them build properly. It seems to be looking for Buffer.cpp but can't find it any where . Here is the error message: scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... g++ -o AssociationRejection.o -c