File tests in Python

Joshua Muskovitz josh at open.com
Fri Oct 13 18:44:25 EDT 2000


> Secondly a correct Perl-installation comes with a very neat program
> called perldoc - which is used to access the Perl
> documentation. Typing for instance:
>
>  bash% perldoc -f localtime
>
> gives you the documentation for the localtime() function - very
> convenient! I know this is not a property of Perl - the programming
> language, but nevertheless, do I have access to something like this
> from python? [Standard Linux install of Python - using emacs as
> editor].

>>> import time
>>> print time.localtime.__doc__
localtime(seconds) -> tuple
Convert seconds since the Epoch to a time tuple expressing local time.

This works for most anything!  Isn't it nice having the documentation
accessible from *within* the IDE?  :-)

-- josh




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----



More information about the Python-list mailing list