Alexander Belopolsky <[EMAIL PROTECTED]> added the comment:
Just to add to the list of getsource quirks: with the following in x.py,
f = lambda: 0 \
[EOF]
>>> import inspect, x; inspect.getsource(x.f)
Traceback (most recent call last):
..
tokenize.TokenError: ('EOF in multi-line statement', (2, 0))
Same with
def f():
0 \
[EOF]
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4335>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com