def init_create_namespaces(self, user_module=None, user_ns=None):
    if ((user_ns is not None) or (user_module is not None)):
        self.default_user_namespaces = False
    (self.user_module, self.user_ns) = self.prepare_user_module(user_module, user_ns)
    self.user_ns_hidden = {}
    self._main_mod_cache = {}
    self.ns_table = {'user_global': self.user_module.__dict__, 'user_local': self.user_ns, 'builtin': builtin_mod.__dict__}
def init_create_namespaces(self, user_module=None, user_ns=None):
    if ((user_ns is not None) or (user_module is not None)):
        self.default_user_namespaces = False
    (self.user_module, self.user_ns) = self.prepare_user_module(user_module, user_ns)
    self.user_ns_hidden = {}
    self._main_mod_cache = {}
    self.ns_table = {'user_global': self.user_module.__dict__, 'user_local': self.user_ns, 'builtin': builtin_mod.__dict__}