[IPython-user] from __future__ import division

skip at pobox.com skip at pobox.com
Tue Dec 20 07:59:32 CST 2005


    >> Why don't you script in it python instead of bash?

    Harri> Except ofcourse that python eats its own options...

Correct:

    % python -Qnew
    Python 2.3.4 (#12, Jul  2 2004, 09:48:10)
    [GCC 3.3.2] on sunos5
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import sys
    >>> sys.argv
    ['']

    Harri> and I don't know if it is possible to get at the original command
    Harri> line from python...

I think sys.argv is the only "option" from Python code.  To do more you'd
probably have to write some C code.  Even then you might need changes to
Python it it really does destroy argv/argc.

Skip




More information about the IPython-user mailing list