Re: How to implement key of key in python?

2014-05-10 Thread Andrea D'Amore
On 2014-05-10 03:28:29 +, eckhle...@gmail.com said: While it is fine for a small dataset, I need a more generic way to do so. I don't get how the dataset size affects the generality of the solution here. From your first message: attr = {} with open('test.txt','rb') as tsvin:

Re: How to implement key of key in python?

2014-05-10 Thread Peter Otten
eckhle...@gmail.com wrote: On Saturday, May 10, 2014 10:30:06 AM UTC+8, MRAB wrote: On 2014-05-10 02:22, I wrote: I'm migrating from Perl to Python and unable to identify the equivalent of key of key concept. The following codes run well, import csv attr = {} with

How to implement key of key in python?

2014-05-09 Thread eckhleung
I'm migrating from Perl to Python and unable to identify the equivalent of key of key concept. The following codes run well, import csv attr = {}

Re: How to implement key of key in python?

2014-05-09 Thread CHIN Dihedral
On Saturday, May 10, 2014 9:22:43 AM UTC+8, eckh...@gmail.com wrote: I'm migrating from Perl to Python and unable to identify the equivalent of key of key concept. The following codes run well, import csv

Re: How to implement key of key in python?

2014-05-09 Thread MRAB
On 2014-05-10 02:22, eckhle...@gmail.com wrote: I'm migrating from Perl to Python and unable to identify the equivalent of key of key concept. The following codes run well, import csv attr = {} with open('test.txt','rb') as tsvin: tsvin = csv.reader(tsvin, delimiter='\t') for row

Re: How to implement key of key in python?

2014-05-09 Thread eckhleung
On Saturday, May 10, 2014 10:30:06 AM UTC+8, MRAB wrote: On 2014-05-10 02:22, I wrote: I'm migrating from Perl to Python and unable to identify the equivalent of key of key concept. The following codes run well, import csv attr = {} with open('test.txt','rb') as tsvin: