[BangPypers] magic in datetime module?

Noufal Ibrahim noufal at gmail.com
Fri Apr 3 08:24:53 CEST 2009

> __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


More information about the BangPypers mailing list