[Python-bugs-list] [ python-Bugs-489158 ] Parser fails with TypeError

noreply@sourceforge.net noreply@sourceforge.net
Tue, 04 Dec 2001 16:30:45 -0800


Bugs item #489158, was opened at 2001-12-04 16:30
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=489158&group_id=5470

Category: Parser/Compiler
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Parser fails with TypeError

Initial Comment:
Attached is a module containing a rather large 
dictionary literal which refuses to parse. I've looked 
at it until I'll blurry eyed and cannot fine the 
error. Since it may be a bug in the parser I'm 
submitting it here. If you can import it, I'm stumped. 
I've used Python 2.2b1 and b2 on Windows.
-Robin

>>> import funny
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in ?
    import funny
  File "funny.py", line 12, in ?
    _DTD = { 'tt': _basic,
TypeError: can only concatenate tuple (not "str") to 
tuple
>>> 

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=489158&group_id=5470