[IPython-dev] Towards IPython 1.0, the famous big cleanup
jack at xiph.org
Fri Apr 15 14:33:24 EDT 2005
> 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
> del magic_runbatch
> What I envision, is something cleaner, more like:
Not that I like the new decorator syntax, but something like:
Is pretty easy to read and grok.
More information about the IPython-dev