ipython / vs \ in readline on MS Windows (and ipython help grepper)

Jason Scheirer jason.scheirer at gmail.com
Thu Mar 12 18:34:40 CET 2009


On Mar 10, 3:34 pm, bdb112 <boyd.blackw... at gmail.com> wrote:
> Q1/ I run a standard python ditribution with ipython and readline
> under cygwin.  The tab filename completion works fine in the OS (bash
> shell) as expected, and tab filename completion at the ipython command
> line works, but with MS style path separators (backslash: run examples
> \test.py) which the run command itself interprets unix style
> ERROR: File `examplestest.py` not found.
>
> Also Q2/ can I "less" or "grep" the output from help(my_fun)
>
> Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
> (Intel)]
> IPython 0.8.4 -- An enhanced Interactive Python.

Cygwin does not magically change the platform you are on, the fact
that you are on Windows is hard-coded into the Python.exe binary. Look
for references to os.path.sep in IPython. Windows does let you use
forward slashes as path separators, though, so I am not entirely sure
what your issue is.



More information about the Python-list mailing list