[IPython-dev] !commands on python3 version

MinRK benjaminrk at gmail.com
Tue Jun 12 15:45:59 EDT 2012


But I think he's asking specifically about whether it should be bytes or
text.

On Python 3 on OSX it is text, and I presume the same on Linux.  This
should be a bug in Shell.getoutput on Windows.

-MinRK

On Tue, Jun 12, 2012 at 12:39 PM, Fernando Perez <fperez.net at gmail.com>wrote:

> On Tue, Jun 12, 2012 at 12:34 PM, Jörgen Stenarson
> <jorgen.stenarson at kroywen.se> wrote:
> > I should have given a complete example
> >
> > In [8]: a=!ls *.py
> >
> > In [9]: a
> > Out[9]:
> > [b'_process_win32.py',
> >  b'argsplit.py',
> >  b'debugerror.py',
> >  b'embedkernel.py',
> >  b'error-utf8.py',
> >  b'error.py',
> >  b'slask.py']
>
> Ah, that's OK.  When capturing, we deliberately grab the output  by
> effectively doing splitlines, so it's more convenient to manage as a
> python data structure.
>
> But if you type
>
> !ls *.py
>
> alone, you should just see the printout.
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120612/16031e3f/attachment.html>


More information about the IPython-dev mailing list