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

Vladislav report at bugs.python.org
Fri Jul 10 00:22:25 CEST 2009


Vladislav <kurtoglu at list.ru> 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.python.org>
<http://bugs.python.org/issue6323>
_______________________________________


More information about the Python-bugs-list mailing list