Show More
@@ -1,7 +1,7 b'' | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 | """Magic functions for InteractiveShell. |
|
2 | """Magic functions for InteractiveShell. | |
3 |
|
3 | |||
4 |
$Id: Magic.py 25 |
|
4 | $Id: Magic.py 2592 2007-08-07 13:30:56Z vivainio $""" | |
5 |
|
5 | |||
6 | #***************************************************************************** |
|
6 | #***************************************************************************** | |
7 | # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and |
|
7 | # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and | |
@@ -1754,6 +1754,8 b' Currently the magic system has the following functions:\\n"""' | |||||
1754 | In [60]: exec In[44:48]+In[49]""" |
|
1754 | In [60]: exec In[44:48]+In[49]""" | |
1755 |
|
1755 | |||
1756 | opts,args = self.parse_options(parameter_s,'r',mode='list') |
|
1756 | opts,args = self.parse_options(parameter_s,'r',mode='list') | |
|
1757 | if not args: | |||
|
1758 | return [k for k,v in self.shell.user_ns.items() if isinstance(v, Macro)] | |||
1757 | name,ranges = args[0], args[1:] |
|
1759 | name,ranges = args[0], args[1:] | |
1758 | #print 'rng',ranges # dbg |
|
1760 | #print 'rng',ranges # dbg | |
1759 | lines = self.extract_input_slices(ranges,opts.has_key('r')) |
|
1761 | lines = self.extract_input_slices(ranges,opts.has_key('r')) |
General Comments 0
You need to be logged in to leave comments.
Login now