[IPython-user] [Python-Dev] a quit that actually quits

Walter Dörwald walter at livinglogic.de
Wed Jan 4 17:08:44 CST 2006

Fernando Perez wrote:

> Ville Vainio wrote:
>> On 1/4/06, Fernando Perez <Fernando.Perez at colorado.edu> wrote:
>>> Neat!  This is a nice hack, I've saved it and will play with it 
>>> later.  Ville,
>>> who's one of our resident ipython-as-shell diehards, might even 
>>> 'ipythonize' it :)
>> There certainly is potential for interesting uses... for the pipeline
>> manipulation of "tables" that is.
>> E.g. I'm thinking of
>> findfiles('/tmp') / tablefilter('size > 10000 and
>> name.lower().endswith(".cpp")')
>> Where findfiles would output a "table" that it fills with all the
>> basic file name & stat info, and "tablefilter" would dump all fields
>> into locals() namespace and pass through only "lines" that pass
>> "eval"-ing the argument string.
>> It's interesting to see how the idea evolves. It's certainly a step
>> into a more "structured" shell-like behaviour. In addition to
>> findfiles() we could have table-emitting methods like getsvninfo() for
>> version control stuff, mp3files() that would tabulate id3 info from
>> all mp3 files etc...
> Yup, intriguing...  At the very least, Walter's tool should be more 
> widely known, and perhaps later on we can integrate it with ipython 
> further.

I think the only thing required for this to work is extensible displayhooks.

> Wo says we can't do better than Microsoft 
> (http://arstechnica.com/guides/other/msh.ars)? :)

At least we have a better syntax.

    Walter Dörwald

More information about the IPython-user mailing list