A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/097040.html below:

rexec and sys.exit()

rexec and sys.exit() rexec and sys.exit()Davide Alberani alberanid at bigfoot.togli.questo.com
Mon Apr 16 11:41:54 EDT 2001
Robin Thomas <robin.thomas at starmedia.net> wrote:
>
>>class MyRE(rexec.RExec):
>>     def r_eval(self, code):
>>         return eval(code, my_dict)
> 
> MyRE.ok_sys_names = () # or some names you wish to allow

It works, thank you.

Oh my god, it was a syntax error!
Obviously I tried:

  class MyRE(rexec.RExec):
      ok_sys_name = ()
      def r_eval(self, code):
          ...

But I wrote "ok_sys_name" instead of "ok_sys_names"... :-|

-- 
http://digilander.iol.it/alberanid/

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4