On Fri, Apr 3, 2009 at 11:54 AM, Noufal Ibrahim <nou...@gmail.com> wrote:
> > __builtins__ = {'__import__': ximport} > > f = now.strftime > > print f("%m %Y") > > > You can get this directly if you use -v. > Calling strftime imports the time module > >>> print now.strftime("%m %Y") > dlopen("/usr/lib/python2.5/lib-dynload/time.so", 2); > import time # dynamically loaded from > /usr/lib/python2.5/lib-dynload/time.so > I have a basic doubt - why do you want to set a module as core as __builtins__ to {} in your code ? If you can answer that reasonably, it makes sense to investigate this or raise a bug. Otherwise, I don't think it is good coding. > > > -- > ~noufal > _______________________________________________ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -Anand
_______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers