Beginners question

Roy Smith roy at panix.com
Thu Aug 30 08:23:23 EDT 2012


In article <mailman.3964.1346328894.4697.python-list at python.org>,
 MRAB <python at mrabarnett.plus.com> wrote:

> What don't you ask Python? I'm sure you'' get something like this:
> 
>  >>> type(s)
> <class 'posix.stat_result'>

BTW, this points out one of the really powerful aspects of Python.  The 
combination of introspection and a handy interactive interpreter makes 
it easy to "just ask the computer".

It's often faster to play around with dir(), type(), and pprint() than 
to find what you're looking for in the docs.



More information about the Python-list mailing list