Message23769
I tried to compile python 2.4 inspect.py module in
Jython but it throwed an exception. The line 749 in the
inspect.py module caused the exception which is
start = lineno - 1 - context//2
The code corresponding to it was also shown.
But when I modified that line to
start = lineno - 1 - context/2
it worked.
Regards,
S.Prasanna
Code:
if context > 0:
start = lineno - 1 - context//2
try:
lines, lnum = findsource(frame)
except IOError:
lines = index = None
else:
start = max(start, 1)
start = min(start, len(lines) - context)
lines = lines[start:start+context]
index = lineno - 1 - start
else:
lines = index = None |
|
Date |
User |
Action |
Args |
2007-08-23 14:28:34 | admin | link | issue1087551 messages |
2007-08-23 14:28:34 | admin | create | |
|