[IPython-dev] !commands on python3 version

Fernando Perez fperez.net at gmail.com
Tue Jun 12 15:39:54 EDT 2012


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.



More information about the IPython-dev mailing list