diff --git a/IPython/completer.py b/IPython/completer.py index 0962604..3647da2 100644 --- a/IPython/completer.py +++ b/IPython/completer.py @@ -108,13 +108,6 @@ class Completer: readline.set_completer(Completer(my_namespace).complete) """ - # some minimal strict typechecks. For some core data structures, I - # want actual basic python types, not just anything that looks like - # one. This is especially true for namespaces. - for ns in (namespace,global_namespace): - if ns is not None and type(ns) != types.DictType: - raise TypeError,'namespace must be a dictionary' - # Don't bind to namespace quite yet, but flag whether the user wants a # specific namespace or to use __main__.__dict__. This will allow us # to bind to __main__.__dict__ at completion time, not now. diff --git a/IPython/iplib.py b/IPython/iplib.py index 55f252c..8bdb61e 100644 --- a/IPython/iplib.py +++ b/IPython/iplib.py @@ -212,13 +212,7 @@ class InteractiveShell(object,Magic): # log system self.logger = Logger(self,logfname='ipython_log.py',logmode='rotate') - - # some minimal strict typechecks. For some core data structures, I - # want actual basic python types, not just anything that looks like - # one. This is especially true for namespaces. - for ns in (user_ns,user_global_ns): - if ns is not None and type(ns) != types.DictType: - raise TypeError,'namespace must be a dictionary' + # Job manager (for jobs run as background threads) self.jobs = BackgroundJobManager() @@ -1033,7 +1027,7 @@ class InteractiveShell(object,Magic): state += 1 outcomps = comps.keys() outcomps.sort() - print "T:",text,"OC:",outcomps # dbg + #print "T:",text,"OC:",outcomps # dbg #print "vars:",self.user_ns.keys() return outcomps @@ -2382,7 +2376,6 @@ want to merge them back into the new files.""" % locals() # This should only be active for single-line input! if continue_prompt: - print 'getting out!' # dbg self.log(line,line,continue_prompt) return line