示例#1
0
 def __init__(self, space, w_name):
     """NOT_RPYTHON"""  # because parent __init__ isn't
     if space.config.translating:
         del self.__class__.interpleveldefs['pypy_getudir']
     super(Module, self).__init__(space, w_name)
     self.recursionlimit = 1000
     self.w_default_encoder = None
     self.defaultencoding = "ascii"
     self.filesystemencoding = None
     self.debug = True
     self.track_resources = False
     self.dlopenflags = rdynload._dlopen_default_mode()
示例#2
0
 def __init__(self, space, w_name):
     """NOT_RPYTHON""" # because parent __init__ isn't
     if space.config.translating:
         del self.__class__.interpleveldefs['pypy_getudir']
     super(Module, self).__init__(space, w_name)
     self.recursionlimit = 1000
     self.w_default_encoder = None
     self.defaultencoding = "ascii"
     self.filesystemencoding = None
     self.debug = True
     self.track_resources = False
     self.dlopenflags = rdynload._dlopen_default_mode()
示例#3
0
    def __init__(self, space, w_name):
        """NOT_RPYTHON""" # because parent __init__ isn't
        if space.config.translating:
            del self.__class__.interpleveldefs['pypy_getudir']
            del self.__class__.appleveldefs['stdin']
            del self.__class__.appleveldefs['__stdin__']
            del self.__class__.appleveldefs['stdout']
            del self.__class__.appleveldefs['__stdout__']
            del self.__class__.appleveldefs['stderr']
            del self.__class__.appleveldefs['__stderr__']

        super(Module, self).__init__(space, w_name)
        self.recursionlimit = 1000
        self.defaultencoding = "utf-8"
        self.filesystemencoding = None
        self.track_resources = False
        self.finalizing = False
        self.dlopenflags = rdynload._dlopen_default_mode()