[Python-bugs-list] [ python-Bugs-433904 ] rexec: all s_* methods return None only

noreply@sourceforge.net noreply@sourceforge.net
Sun, 17 Jun 2001 06:04:55 -0700


Bugs item #433904, was updated on 2001-06-17 06:04
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=433904&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Alex Martelli (aleax)
Assigned to: Nobody/Anonymous (nobody)
Summary: rexec: all s_* methods return None only

Initial Comment:
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


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=433904&group_id=5470