2008-08-16 23:26:59 +08:00
|
|
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
class Std(object):
|
2009-04-02 15:52:32 +08:00
|
|
|
""" lazily import standard modules """
|
2008-08-16 23:26:59 +08:00
|
|
|
def __init__(self):
|
|
|
|
self.__dict__ = sys.modules
|
|
|
|
|
|
|
|
def __getattr__(self, name):
|
2009-04-02 15:52:32 +08:00
|
|
|
return __import__(name)
|
2008-08-16 23:26:59 +08:00
|
|
|
|
|
|
|
std = Std()
|