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

noreply@sourceforge.net noreply@sourceforge.net
Tue, 04 Dec 2001 16:51:41 -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: Tim Peters (tim_one)
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: Tim Peters (tim_one)
Date: 2001-12-04 16:51

Message:
Logged In: YES 
user_id=31435

It shouldn't be possible for the parser to raise a 
TypeError.  Are you claiming that this exact code worked 
under some version of Python prior to 2.2b1 (not arguing, I 
simply can't tell what your claim is)?  You can mail the 
file to me, if you like.

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

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