[IPython-dev] Towards IPython 1.0, the famous big cleanup
Fernando.Perez at colorado.edu
Fri Apr 15 13:44:17 CDT 2005
Jack Moffitt wrote:
>>magic involves binding by hand an instance method with a special name, for
>>from IPython.iplib import InteractiveShell
>>def magic_runbatch(self, parameter_s=''):
>> """ runbatch magic command.
>> fileobj = open(parameter_s,'r')
>> print "Error: could not open file",parameter_s
>>InteractiveShell.magic_runbatch = magic_runbatch
>>What I envision, is something cleaner, more like:
> Not that I like the new decorator syntax, but something like:
> def run_batch(...)
> Is pretty easy to read and grok.
Yup, but that's 2.4. I'm trying to hold on to 2.2 compatibility for as long
as I can. That may be too much to ask, but definitely 2.3 will be a target,
so 2.4-specific features may be out.
More information about the IPython-dev