473,394 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

explainations about standard library and modules in Python.

Hi.
I just finished reading an introductory Python book called "Python Programming for the absolute beginner" by Michael Dawson. I found it very interesting, and easy to follow. Python does really look similar to C/C++ and Java. In the book, the author imported other modules that were from the standard library of Python. I tried reading some of the modules in the standard library in Python's Lib folder. I'm just a beginner to Python, and didn't understand anything in any of the modules.
My question is that, can anyone recommend me any book, or online materials that could explain what the functions some of the modules in the standard library can do that are packaged along with Python v. 2.3.4?. For example, I read some modules such as os.py, sys.py, and random.py The documents in those modules didn't help me to comprehend what the purpose of the modules, and how to use them in Python. What are their functions, and how do I use them.
Thank You.
Jul 18 '05 #1
6 1880
Hung ho wrote:
My question is that, can anyone recommend me any book, or online materials that
could explain what the functions some of the modules in the standard
library can do that are packaged along with Python v. 2.3.4?. For
example, I read some modules such as os.py, sys.py, and random.py
The documents in those modules didn't help me to comprehend what
the purpose of the modules, and how to use them in Python.


No beginner is expected to read the source code itself to figure
things out. Go to the online documentation at http://docs.python.org
and browse through it. Make sure you read the tutorial, but if
you have questions about specific modules, go to the Global Module
Index.

For example, read the first sentence of each of these two learn the
purpose of the modules you mentioned:

http://docs.python.org/lib/module-sys.html
http://docs.python.org/lib/module-os.html
http://docs.python.org/lib/module-random.html

-Peter
Jul 18 '05 #2
[Hung ho wrote]
My question is that, can anyone recommend me any book, or online
materials that could explain what the functions some of the modules in
the standard library can do that are packaged along with Python v.
2.3.4?. For example, I read some modules such as os.py, sys.py, and
random.py The documents in those modules didn't help me to comprehend
what the purpose of the modules, and how to use them in Python. What
are their functions, and how do I use them. Thank You.


http://docs.python.org/lib/lib.html

Specifically:
http://docs.python.org/lib/module-os.html
http://docs.python.org/lib/module-sys.html
http://docs.python.org/lib/module-random.html

Cheers,
Trent

--
Trent Mick
Tr****@ActiveState.com
Jul 18 '05 #3

Hung ho wrote:
Hi.
I just finished reading an introductory Python book called "Python Programming for the absolute beginner" by Michael Dawson. I found it very interesting, and easy to follow. Python does really look similar to C/C++ and Java. In the book, the author imported other modules that were from the standard library of Python. I tried reading some of the modules in the standard library in Python's Lib folder. I'm just a beginner to Python, and didn't understand anything in any of the modules.
My question is that, can anyone recommend me any book, or online materials that could explain what the functions some of the modules in the standard library can do that are packaged along with Python v. 2.3.4?. For example, I read some modules such as os.py, sys.py, and random.py The documents in those modules didn't help me to comprehend what the purpose of the modules, and how to use them in Python. What are their functions, and how do I use them.
Thank You.


For someone who has previous programming experience, Alex Martelli's
Python in a Nutshell is an excellent reference.

Colin W.
Jul 18 '05 #4
"Hung ho" <hung ho@rogers.com> wrote in message news:<UR********************@twister01.bloor.is.ne t.cable.rogers.com>...
My question is that, can anyone recommend me any book, or online
materials that could explain what the functions some of the modules in
the standard library can do that are packaged along with Python v.
2.3.4?. For example, I read some modules such as os.py, sys.py, and
random.py The documents in those modules didn't help me to comprehend
what the purpose of the modules, and how to use them in Python. What are
their functions, and how do I use them.
Thank You.


Python in a Nutshell has a nice concise converage of key functions of
a built-in modules including both os.py and sys.py. 'Programming
Python' goes into greater details, gives lots of coding examples.

I agree on-line information you can retrieve with 'help' can be rather
confusing. Doing something like

help(random)

got me lost in the forest, not seeing the trees. Once again, Python in
a Nutshell has a nice page on random module with a list and short
explanation of key functions. Granted, it mostly duplicates the staff
from help(random), but it lists only those you really need to know to
start using random.
Jul 18 '05 #5
Hung ho said unto the world upon 2004-09-02 14:44:
Hi. I just finished reading an introductory Python book called "Python
Programming for the absolute beginner" by Michael Dawson. I found it
very interesting, and easy to follow. Python does really look similar
to C/C++ and Java. In the book, the author imported other modules that
were from the standard library of Python. I tried reading some of the
modules in the standard library in Python's Lib folder. I'm just a
beginner to Python, and didn't understand anything in any of the
modules. My question is that, can anyone recommend me any book, or
online materials that could explain what the functions some of the
modules in the standard library can do that are packaged along with
Python v. 2.3.4?. For example, I read some modules such as os.py,
sys.py, and random.py The documents in those modules didn't help me to
comprehend what the purpose of the modules, and how to use them in
Python. What are their functions, and how do I use them. Thank You.


Hi,

I am a relative newcomer to Python and programming both.

You've already been pointed to Python in a Nutshell. I'll add my voice to
that.

I'd also suggest The Python Standard library by Lundh. There is an
O'Reilly dead-tree <http://www.oreilly.com/catalog/pythonsl/> and a free
version at <http://effbot.org/zone/librarybook-index.htm>. It is a bit out
of date (IIRC it is geared to Python 2.0), but it has been helpful to me
nevertheless.

Between the docs, the Nutshell book and the Lundh, the helpful people on
the tutor list have been spared many posts from me ;-)

Best,

Brian vdB
Jul 18 '05 #6
Colin J. Williams <cj*@sympatico.ca> wrote:
...
My question is that, can anyone recommend me any book, or online
materials that could explain what the functions some of the modules in
the standard library can do that are packaged along with Python v.
2.3.4?. For
... For someone who has previous programming experience, Alex Martelli's
Python in a Nutshell is an excellent reference.


Thanks Colin, your usual agent's fee will be forthcoming of course (now
wouldn't be funny if I mistakenly posted this to the whole list instead
of privately to you, ha ha, no chance of course I'd so such a mistake!).
Alex
Jul 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pierre Quentel | last post by:
Python standard library provides two modules for asynchronous socket programming : asyncore and asynchat. Several web servers have been built upon these modules (medusa being the best-known I...
1
by: Mark McEahern | last post by:
I just wrote a very simple wrapper for the PayFlow Pro SDK (see below). A friend of mine did this before, but I didn't have access to his source, so I took it as a learning opportunity for me to...
8
by: Raymond Hettinger | last post by:
Comments are invited on the following proposed PEP. Raymond Hettinger ------------------------------------------------------- PEP: 329
2
by: F. Petitjean | last post by:
I have written a script to find the modules which export the largest number of names. The gc.getreferrers(*objs) function gives also an idea of the dependencies between the modules. The code...
51
by: Reinhold Birkenfeld | last post by:
Hello, at the moment python-dev is discussing including Jason Orendorff's path module into the standard library. Do you have any other good and valued Python modules that you would think are...
42
by: John Doty | last post by:
I realized that I have a little job on the table that is a fine test of the Python versus Standard Forth code availability and reusability issue. Note that I have little experience with either...
31
by: Mark Dufour | last post by:
Hi all, I have recently released version 0.0.20 and 0.0.21 of Shed Skin, an optimizing Python-to-C++ compiler. Shed Skin allows for translation of pure (unmodified), implicitly statically typed...
4
by: dustin | last post by:
I've been hacking away on this PEP for a while, and there has been some related discussion on python-dev that went into the PEP: ...
3
by: Hussein B | last post by:
Hey, Is the standard library of Python is compiled (you know, the pyc thing)? Is it allowed to edit the source code of the standard library? I'm not talking about submitting the modified code to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.