Show More
@@ -187,12 +187,10 b' class Completer:' | |||||
187 | if not m: |
|
187 | if not m: | |
188 | return [] |
|
188 | return [] | |
189 | expr, attr = m.group(1, 3) |
|
189 | expr, attr = m.group(1, 3) | |
190 | print 'expr:',expr # dbg |
|
|||
191 | try: |
|
190 | try: | |
192 | object = eval(expr, self.namespace) |
|
191 | object = eval(expr, self.namespace) | |
193 | except: |
|
192 | except: | |
194 | object = eval(expr, self.global_namespace) |
|
193 | object = eval(expr, self.global_namespace) | |
195 | print 'obj:',object # dbg |
|
|||
196 | words = [w for w in dir(object) if isinstance(w, basestring)] |
|
194 | words = [w for w in dir(object) if isinstance(w, basestring)] | |
197 | if hasattr(object,'__class__'): |
|
195 | if hasattr(object,'__class__'): | |
198 | words.append('__class__') |
|
196 | words.append('__class__') |
@@ -6,7 +6,7 b' Requires Python 2.1 or newer.' | |||||
6 |
|
6 | |||
7 | This file contains all the classes and helper functions specific to IPython. |
|
7 | This file contains all the classes and helper functions specific to IPython. | |
8 |
|
8 | |||
9 |
$Id: iplib.py 95 |
|
9 | $Id: iplib.py 953 2005-12-26 18:09:16Z fperez $ | |
10 | """ |
|
10 | """ | |
11 |
|
11 | |||
12 | #***************************************************************************** |
|
12 | #***************************************************************************** | |
@@ -1934,7 +1934,7 b' want to merge them back into the new files.""" % locals()' | |||||
1934 | cmd = '%sipmagic("%s")' % (pre,esc_quotes('%s %s' % (iFun,theRest))) |
|
1934 | cmd = '%sipmagic("%s")' % (pre,esc_quotes('%s %s' % (iFun,theRest))) | |
1935 | self.log(cmd,continue_prompt) |
|
1935 | self.log(cmd,continue_prompt) | |
1936 | self.update_cache(line) |
|
1936 | self.update_cache(line) | |
1937 | print 'in handle_magic, cmd=<%s>' % cmd # dbg |
|
1937 | #print 'in handle_magic, cmd=<%s>' % cmd # dbg | |
1938 | return cmd |
|
1938 | return cmd | |
1939 |
|
1939 | |||
1940 | def handle_auto(self, line, continue_prompt=None, |
|
1940 | def handle_auto(self, line, continue_prompt=None, |
General Comments 0
You need to be logged in to leave comments.
Login now