[IPython-user] IPython Color help on windows cmd shell

Fernando Perez fperez.net@gmail....
Fri Mar 2 01:38:15 CST 2007


On 3/2/07, Thomas Heller <theller@ctypes.org> wrote:

> FYI, the starship which has ctypes homepage is down, but the downloads
> are still available in the SF download section:
> http://sourceforge.net/projects/ctypes

Thanks for the pointer, another user had also mentioned it.  I deleted
the copy at scipy then, no point in duplicating it if the original
really is available.

> BTW: There seems to be a problem in IPython with unicode __doc__ strings;
> this is on WinXP:
>
> c:\svn\theller>ipy25
> Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]
> Type "copyright", "credits" or "license" for more information.
>
> IPython 0.7.4.svn.r2120 -- An enhanced Interactive Python.
> ?       -> Introduction to IPython's features.
> %magic  -> Information about IPython's 'magic' % functions.
> help    -> Python's own help system.
> object? -> Details about 'object'. ?object also works, ?? prints more.
>
> In [1]: class X(object):
>    ...:     u"the doc string"
>    ...:
>    ...:
>
> In [2]: x = X()
>
> In [3]: x??
> T y p eX B a s e   C < c l a s s   ' _ _ mS t r i n g    < _ _ m a i n _ _ . X   o b j e cN a m e s pI n t e r a D o c s
>  t r i n g   [ s o u r c e   f        t h e   d o

Mmh, very odd.  I don't see that at all under Linux:

maqroll[~]> ip5
Python 2.5 (r25:51908, Oct  6 2006, 15:22:41)
Type "copyright", "credits" or "license" for more information.

IPython 0.7.4.svn.r2120 -- An enhanced Interactive Python.
?       -> Introduction to IPython's features.
%magic  -> Information about IPython's 'magic' % functions.
help    -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]: class X(object):
   ...:     u"the docstring"
   ...:

In [2]: x=X()

In [3]: x??
Type:           X
Base Class:     <class '__main__.X'>
String Form:    <__main__.X object at 0x407e2d4c>
Namespace:      Interactive
Docstring [source file open failed]:
    the docstring


I know so little about windows that I honestly don't have a clue as to
what the problem could be.  Any suggestions?

Regards,

f


More information about the IPython-user mailing list