tuples within tuples

Stargaming stargaming at gmail.com
Fri Oct 26 23:33:43 CEST 2007

On Fri, 26 Oct 2007 14:26:24 -0600, Michael L Torrie wrote:

> korovev76 at gmail.com wrote:
>>>> ('tagA', None, [('tagB', None, ['bobloblaw], None)], None)
Syntax error behind ``'bobloblaw``.

>>>         "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.

He certainly is -- *you* are misreading *him*. The nit he's picking is 
the non-terminated string (quotation mark/apostrophe missing).


More information about the Python-list mailing list