[Tutor] Viewing __doc__ strings

Simon Brunning SBrunning@trisystems.co.uk
Fri, 8 Jun 2001 15:46:07 +0100


> From:	Allan Crooks [SMTP:amc1@dcs.qmw.ac.uk]
> Is there anyway to make Python display __doc__ strings without all the
> "\n" characters? I know I could manually split it and then rejoin it, but
> surely there's an easier way?
 
Just use print.

print whatever.__doc__

Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning@trisystems.co.uk




-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.