[IPython-dev] !commands on python3 version

Jörgen Stenarson jorgen.stenarson@kroywen...
Tue Jun 12 14:34:49 CDT 2012


Fernando Perez skrev 2012-06-12 21:31:
> On Tue, Jun 12, 2012 at 12:15 PM, Jörgen Stenarson
> <jorgen.stenarson@kroywen.se>  wrote:
>>  What is the result of a !command call on linux? On windows I get binary
>>  data and not strings.
>
> Should just print the output to the screen, as if you had run it at a
> terminal.  If that's not the case, that's a problem.

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']

/Jörgen


More information about the IPython-dev mailing list