Message891

Author alain_tesio
Recipients
Date 2004-09-28.22:04:05
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=13893

I have the same problems with exceptions raised in lambda
functions, python 2.1 has the line number, jython shows 0 

def f(x):
	raise ValueError

print (lambda x:f(x))(1)


00:01:52 alain ~ $jython /tmp/test.py
Traceback (innermost last):
  File "/tmp/test.py", line 4, in ?
  File "/tmp/test.py", line 0, in <lambda>
  File "/tmp/test.py", line 2, in f
ValueError:
00:02:06 alain ~ $python2.1 /tmp/test.py
Traceback (most recent call last):
  File "/tmp/test.py", line 4, in ?
    print (lambda x:f(x))(1)
  File "/tmp/test.py", line 4, in <lambda>
    print (lambda x:f(x))(1)
  File "/tmp/test.py", line 2, in f
    raise ValueError
ValueError
History
Date User Action Args
2008-02-20 17:17:17adminlinkissue904322 messages
2008-02-20 17:17:17admincreate