python
- From: Daniel Dalton <d.dalton@xxxxxxxxxxxx>
- To: blind programming <programmingblind@xxxxxxxxxxxxx>
- Date: Mon, 12 May 2008 17:20:59 +1000 (EST)
Hi,
I have been teaching myself python and have a few questions:
1. Does anyone know of a good book on classes, the try statement and the
more advanced things in python?
2. What is the best way of handling command line arguments?
So far I have been doing:
import sys
for i in sys.argv[1:]:
if i == "-b":
do something
elif i == "whatever":
do something else.
Sorry if my indenting is wrong, no braille here.
But just using a loop to go through the argvs, check what it is and do a
certain thing.
Is there a cleaner/easier way than this?
3. Where is the best place to learn apis such as gtk and any I may need to
know for linux programming and general python stuff?
4. Does anyone know of a book that could teach me the more advanced
things as wells as review the basics in python? (I have a reasonable
understanding of python...)
Any help is greatly appreciated.
Cheers,
--
Daniel Dalton
http://members.iinet.net.au/~ddalton/
<d.dalton@xxxxxxxxxxxx>
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind
- Follow-Ups:
- Python books was: python
- From: rrdinger
- Command Line was: python
- From: rrdinger
- Re: python
- From: Jamal Mazrui
Other related posts:
- » python
- » Re: python
- » python
- » Re: python
- » Re: python
- » Re: python
- » python - Edward
- » Re: python - Richard Dinger
- » python - ryan mcmanomy
- » RE: python - Homme, James
- » Re: python - Mark Matthews
- » RE: python - Homme, James
- » Re: python - Q
- » RE: python - Homme, James
- » RE: python - Homme, James
- » Re: python - Mark Matthews
- » Re: python - Mark Matthews
- Python books was: python
- From: rrdinger
- Command Line was: python
- From: rrdinger
- Re: python
- From: Jamal Mazrui