tuples within tuples
Michael L Torrie
torriem at chem.byu.edu
Fri Oct 26 16:26:24 EDT 2007
korovev76 at gmail.com wrote:
> On 26 Ott, 19:23, Dennis Lee Bieber <wlfr... at ix.netcom.com> wrote:
> > > (A,B,C,D)
>>> that could be
>>> ('tagA', None, [('tagB', None, ['bobloblaw], None)], None)
>> "C" isn't a tuple in your example either. It is a one-element list
>> (the single element INSIDE the list is a tuple whose third element is a
>> list containing a non-terminated string -- so the entire structure is
>> invalid)
>>
>
> i'm not sure what u mean with "the entire structure is invalid"...
> that's exactly what I got while parsing...
Your structure is correct. Dennis just didn't read all the matching
parens and brackets properly.
>
>
--
Michael Torrie
Assistant CSR, System Administrator
Chemistry and Biochemistry Department
Brigham Young University
Provo, UT 84602
+1.801.422.5771
More information about the Python-list
mailing list