Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue6323] Py3.1 pdb doesn't deal well with syntax errors

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jul 9, 2009, 3:22 PM

Post #1 of 3 (255 views)
Permalink
[issue6323] Py3.1 pdb doesn't deal well with syntax errors

Vladislav <kurtoglu [at] list> added the comment:

>>> lambda: pass
SyntaxError: invalid syntax (<pyshell#0>, line 1)
>>> lambda: pas
<function <lambda> at 0x00F5C858>
>>> func_1=lambda: pas
>>> func_1()
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
func_1()
File "<pyshell#2>", line 1, in <lambda>
func_1=lambda: pas
NameError: global name 'pas' is not defined
>>> func_1=lambda: pass
SyntaxError: invalid syntax (<pyshell#4>, line 1)
>>>

This is very funny:)

----------
components: +Windows -Library (Lib)
nosy: +kurtoglu
type: behavior -> crash

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6323>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 9, 2009, 3:41 PM

Post #2 of 3 (233 views)
Permalink
[issue6323] Py3.1 pdb doesn't deal well with syntax errors [In reply to]

Andreas Kloeckner <inform [at] tiker> added the comment:

Vladislav: The behavior you find funny is actually correct. "pass" is a
statement and as such not allowed in a lambda. (only expressions are)
Your posting is unrelated to this bug report. If you're still confused,
please ask on comp.lang.python.

----------
components: +Library (Lib) -Windows

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6323>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 9, 2009, 4:21 PM

Post #3 of 3 (234 views)
Permalink
[issue6323] Py3.1 pdb doesn't deal well with syntax errors [In reply to]

Amaury Forgeot d'Arc <amauryfa [at] gmail> added the comment:

Fixed in r73918 (py3k) and r73920 (release31-maint). Thanks for the
report!

----------
resolution: -> fixed
status: open -> closed

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6323>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.