Message5095
D:\py21>python
Python 2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license" for more
information.
>>> import rexec
>>> r=rexec.RExec()
>>> x=r.r_eval('2+2')
>>> print x
4
>>> x=r.s_eval('2+2')
>>> print x
None
>>>
Cause: method s_apply lacks a 'return r' at the end,
and all the other s_* methods should be 'return
self.s_apply(...' but are in fact lacking the return
keyword (they just call s_apply but ignore its result).
Alex
|
|
Date |
User |
Action |
Args |
2007-08-23 13:54:52 | admin | link | issue433904 messages |
2007-08-23 13:54:52 | admin | create | |
|