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. 6 1898
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
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.
"Hung ho" <hung ho@rogers.com> wrote in message news:<UR******* *************@t wister01.bloor. is.net.cable.ro gers.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.
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 suppose) and are famous
for their performance level
Unfortunately no example of use is provided in the standard library (whereas
the more "classic" SocketServer is illustrated by BaseHTTPServer,
SimpleHTTPServer, etc). I think it would be useful if...
|
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 write a C
wrapper. I did a little searching to see whether anyone had done
anything like this for Python. I didn't find anything.
I did find that PHP comes with an extension for PayFlow Pro that you can
compile into the language:
|
by: Raymond Hettinger |
last post by:
Comments are invited on the following proposed PEP.
Raymond Hettinger
-------------------------------------------------------
PEP: 329
|
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 (statsmod.py) :
#!/usr/bin/env python
# -*- coding: latin-1 -*-
"""
|
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
bug-free, mature (that includes a long release distance) and useful enough to
be granted a place in the stdlib?
For my part, ctypes seems like a suggestion to start with.
| |
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 Python or Standard Forth
(but I have much experience with a very nonstandard Forth). I've noodled
around a bit with both gforth and Python, but I've never done a serious
application in either. In my heart, I'm more of a Forth fan: Python is a
bit...
|
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 Python programs into
optimized C++, and hence, highly optimized machine language. Besides
many bug fixes and optimizations, these releases add the following
changes:
-support for 'bisect', 'collections.deque' and 'string.maketrans'
|
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:
http://mail.python.org/pipermail/python-dev/2007-February/070921.html
http://mail.python.org/pipermail/python-dev/2007-February/071155.html
http://mail.python.org/pipermail/python-dev/2007-February/071181.html
I'd love to have feedback on this PEP:
- from a user's perspective (would you want to write...
|
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 Python source
code repository, I'm just asking if some one can edit the source code
in his own machine.
Thanks.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |