Hansen, Mike wrote:
[mailto:[EMAIL PROTECTED] On Behalf Of Nathan Farrar
Sent: Saturday, July 05, 2008 12:24 PM
To: Python Tutor
Subject: [Tutor] Exploring the Standard Library
I'd like to spend some time exploring the standard library.
I'm running python on Ubuntu. How would
> [mailto:[EMAIL PROTECTED] On Behalf Of Nathan Farrar
> Sent: Saturday, July 05, 2008 12:24 PM
> To: Python Tutor
> Subject: [Tutor] Exploring the Standard Library
>
> I'd like to spend some time exploring the standard library.
> I'm running python on Ubuntu.
On Sat, Jul 5, 2008 at 2:23 PM, Nathan Farrar <[EMAIL PROTECTED]> wrote:
> I'd like to spend some time exploring the standard library. I'm running
> python on Ubuntu. How would I find the location of the modules (find /
> -name "os.py" does not yield results)?
>
> Thanks!
> Nathan
> _
This might work:
>>> import os
>>> print os.__file__
c:\devtools\Python25\lib\os.pyc
Also, you might find Doug Hellman's "Python Module Of The Week" helpful:
http://www.doughellmann.com/projects/PyMOTW/
On 7/5/08, Nathan Farrar <[EMAIL PROTECTED]> wrote:
>
> I'd like to spend some time expl
import sys
print sys.path
but no one recommends starting with python from there. you're better of
reading the python.org/doc files.
2008/7/5 Nathan Farrar <[EMAIL PROTECTED]>:
> I'd like to spend some time exploring the standard library. I'm running
> python on Ubuntu. How would I find the
The python interpreter can give you this information; just type:
import sys
for i in sys.path:
print i
And search in the lib directories it shows.
You might also be interested in the std library reference at docs.python.org.
--
Amin Rainmaker--- Begin Message ---
I'd like to spend some time
I'd like to spend some time exploring the standard library. I'm running
python on Ubuntu. How would I find the location of the modules (find /
-name "os.py" does not yield results)?
Thanks!
Nathan
___
Tutor maillist - Tutor@python.org
http://mail.pyt