Re: [Tutor] Fwd: question about lists

2013-12-04 Thread Steven D'Aprano
On Wed, Dec 04, 2013 at 10:35:46AM +0100, Ismar Sehic wrote: > hello, good people. > i have a pretty urgent question.the situation is like this, i have > following lists, as results of numerous psycopg2 queries, here are two > examples : Ismar, the following don't look like Python lists to me. It'

Re: [Tutor] Fwd: question about lists

2013-12-04 Thread spir
On 12/04/2013 10:35 AM, Ismar Sehic wrote: [...] Your presentation is a bit abscure (to me, at least): it is hard to help you. Maybe you could explain better, and progressively: * what is the purpose of your software, and its context * what are your input data and what they mean, and whether

Re: [Tutor] Fwd: question about lists

2013-12-04 Thread Dave Angel
On Wed, 4 Dec 2013 10:35:46 +0100, Ismar Sehic wrote: so please, i need some pointers in how to get these lists related, regarding i cannot use indexing, because i don't always have the same number of items in list. First question is whether the data is assumed to be self consistent. For

[Tutor] Fwd: question about lists

2013-12-04 Thread Ismar Sehic
hello, good people. i have a pretty urgent question.the situation is like this, i have following lists, as results of numerous psycopg2 queries, here are two examples : for one hotel, id 3628 : 3628 [36L, 317L] - room type id ['DBP', 'DS5'] - room names [Decimal('10.00'), Decimal('17.00'), Dec