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

noreply@sourceforge.net noreply@sourceforge.net
Tue, 04 Dec 2001 16:47:35 -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
>>> 

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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-12-04 16:47

Message:
Logged In: YES 
user_id=6380

OK, mail it to guido@python.org.

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

Comment By: Nobody/Anonymous (nobody)
Date: 2001-12-04 16:34

Message:
Logged In: NO 

OK The file attachment feature failed. Let me know where I 
might send the 7KB file.

-Robin

robinfriedrich@pdq.net

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

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