ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activepython
activepython
Formatting in PythonWin's Interactive Window
by David McNeill other posts by this author
Jan 12 2006 9:14AM messages near this date
view in the new Beta List Site
Re: ActivePython 2.4.2 and MSVCR71.DLL | Re: Formatting in PythonWin's Interactive Window
Hi,

I've only been playing with PythonWin (and Python) for a day, but I'm very impressed, so far
. One thing I can't figure out, though, is how to get the Interactive Window to format the o
utput of some of the methods, such as __doc__. For instance, when I execute the line

> >>dict.__doc__

I get the following for output

"dict() ->  new empty dictionary.\ndict(mapping) -> new dictionary initialized from a mapping
 object's\n    (key, value) pairs.\ndict(seq) ->  new dictionary initialized as if via:\n    
d = {}\n    for k, v in seq:\n        d[k] = v\ndict(**kwargs) ->  new dictionary initialized
 with the name=value pairs\n    in the keyword argument list.  For example:  dict(one=1, two
=2)"

It's full of newline codes, but they are ignored, and they just make it harder to read. Is t
here a way to correct this?

Thanks!
Dave


_______________________________________________
ActivePython mailing list
ActivePython@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython
Thread:
David McNeill
Mark Pryor
James C. McDonald
David McNeill

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved