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

B

bdb112

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.
 
B

bdb112

More info:

import readline
? readline
c:\python25\lib\site-packages\ipython\rlineimpl.py
$Id: Magic.py 1096 2006-01-28 20:08:02Z vivainio $

sys.platform 'win32'
sys.getfilesystemencoding() 'mbcs'
sys.winver '2.5'

$more /usr/local/bin/ipython
#!/bin/bash
C:/Python25/python.exe "C:\Python25\scripts\ipython" -pylab $*

(Same problem if I use the windows Start menu Ipython IPython and
pysh)
 
J

Jason Scheirer

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

anybody help me 1

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top