Re: [Tutor] Pygame mailing list info needed

2005-12-21 Thread Johan Geldenhuys
This will do, thanks. Johan Lee Harr wrote: I subscribed to the pygame-users mailing list through [EMAIL PROTECTED], but I don't know where to send the mail too so that everybody can see it. Any suggestion on how to use that mailing list? http://www.google.com/search?q=p

Re: [Tutor] Books

2005-12-21 Thread Tim Johnson
* Kent Johnson <[EMAIL PROTECTED]> [051221 13:40]: > Johan Geldenhuys wrote: > > Are here any new books on web programming with Python? I have "Python Web Programming" by Steve Holden, written in 2002 covering up to python 2.0 - I believe. http://www.amazon.com/gp/product/0735710902/qid=1

Re: [Tutor] how to extract text by specifying an element using ElementTree

2005-12-21 Thread Kent Johnson
Danny Yoo wrote: > > On Wed, 21 Dec 2005, ps python wrote: > > >>Dear drs. Yoo and johnson, Thank you very much for your help. I >>successully parsed my GO annotation from all 16,000 files. thanks again >>for your kind help > > > I'm glad to hear that it's working for you now. Just as a clar

Re: [Tutor] Performance of Python loops vs multiple MySQL queries

2005-12-21 Thread Kent Johnson
Bernard Lebel wrote: > Hello, > > Finally, after a year and a half of learning and messing around with > Python, I'm writing THE code that made learn Python in the first > place: a render farm client management software. I may have several > questions regarding this, but for now I only have one.

Re: [Tutor] Differnce between java and python

2005-12-21 Thread Danny Yoo
On Wed, 21 Dec 2005, shivayogi kumbar wrote: > sir plz tell me the main differnces between java and python? And What > are the advantages of python? Hi Shivayogi, When you post on a mailing list that's dedicated to help teach programming with Python, you do anticipate what kind of answers you

Re: [Tutor] Print random letters

2005-12-21 Thread Danny Yoo
> I want to print out random letters from A - Z. I know how to do this > with numbers, but don't know with letters. Hi Johan, There's a "mapping" between numbers and letters through the ord() and chr() built-in functions. ord() takes in a character and returns a number, and chr() takes in a n

Re: [Tutor] how to extract text by specifying an element using ElementTree

2005-12-21 Thread Danny Yoo
On Wed, 21 Dec 2005, ps python wrote: > Dear drs. Yoo and johnson, Thank you very much for your help. I > successully parsed my GO annotation from all 16,000 files. thanks again > for your kind help I'm glad to hear that it's working for you now. Just as a clarification: I'm not a doctor. *g

Re: [Tutor] Pygame mailing list info needed

2005-12-21 Thread Lee Harr
>I subscribed to the pygame-users mailing list through [EMAIL PROTECTED], >but I don't know where to send the mail too so that everybody can see it. > >Any suggestion on how to use that mailing list? > http://www.google.com/search?q=pygame+mailing+list 2nd link ... """ Pygame maintains an active

Re: [Tutor] Differnce between java and python

2005-12-21 Thread Kent Johnson
Alan Gauld wrote: >>>Python is more forgiving >> >>Could you elaborate on this feature? > > > Python allows you to do things, without complaining, that Java just > won't allow. Another way to put it is, Java is way more picky than Python. Much of this is a consequence of Python's dynamic typin

Re: [Tutor] Differnce between java and python

2005-12-21 Thread pcarey
Alan, thanks for the response. >Python allows you to do things, without complaining, that Java just >won't allow. Checked exceptions are a pain, but at least there's no ambiguity about what f(x) is gonna throw (unless it throws a RuntimeException). Nevertheless, I agree: checked exceptions are p

Re: [Tutor] Books

2005-12-21 Thread Kent Johnson
Johan Geldenhuys wrote: > Are here any new books on web programming with Python? Depending on what you mean by web programming, you might be interested in these: Foundations of Python Network Programming http://www.apress.com/book/bookDisplay.html?bID=363 Twisted Network Programming Essentials h

Re: [Tutor] Differnce between java and python

2005-12-21 Thread Alan Gauld
>>Python is more forgiving > > Could you elaborate on this feature? Python allows you to do things, without complaining, that Java just won't allow. As one example: you create a Java module M containing a class C with a method F that throws exception E. Now to use that in your code, say calle

Re: [Tutor] import a module

2005-12-21 Thread Alan Gauld
And to add to Kent's comments >> C:\Documents and Settings\Christopher Spears\My >> Documents\programming\PythonScripts\Part4\Ex07\functions.py >> >> I want to launch IDLE, import the file, and use it. I >> tried: >> >> import "C:\Documents and Settings\Christopher >> Spears\My >> Documents\p

Re: [Tutor] Print random letters

2005-12-21 Thread Terry Carroll
On Wed, 21 Dec 2005, Kent Johnson wrote: > Take a look at random.choice() or possibly random.shuffle() or > random.sample(). And remember that a string is a kind of sequence. Good call; I should have read all the replies first. >>> random.choice(string.uppercase) is much clearer than my suggest

Re: [Tutor] Books

2005-12-21 Thread Johan Geldenhuys
Are here any new books on web programming with Python? Johan David Holland wrote: >I would recommend python programming for the absolute beginner. > > > > > >___ >Yahoo! Messenger - NEW crystal clear PC to PC c

Re: [Tutor] Print random letters

2005-12-21 Thread Terry Carroll
On Wed, 21 Dec 2005, Johan Geldenhuys wrote: > I want to print out random letters from A - Z. I know how to do this > with numbers, but don't know with letters. >>> import string >>> import random >>> string.uppercase[random.randint(0,len(string.uppercase)-1)] 'K' >>> >>> string.uppercase[random

[Tutor] Books

2005-12-21 Thread David Holland
I would recommend python programming for the absolute beginner. ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com ___

Re: [Tutor] Print random letters

2005-12-21 Thread Kent Johnson
Johan Geldenhuys wrote: > Hi all, > > I want to print out random letters from A - Z. I know how to do this > with numbers, but don't know with letters. > > Any ideas wil be greatly appreciated. Take a look at random.choice() or possibly random.shuffle() or random.sample(). And remember that a

[Tutor] Print random letters

2005-12-21 Thread Johan Geldenhuys
Hi all, I want to print out random letters from A - Z. I know how to do this with numbers, but don't know with letters. Any ideas wil be greatly appreciated. Johan ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] import a module

2005-12-21 Thread Kent Johnson
Christopher Spears wrote: > I'm feeling a little foolish because I cannot do this. > I created a module called functions (Clever, huh?) at > this path: > > C:\Documents and Settings\Christopher Spears\My > Documents\programming\PythonScripts\Part4\Ex07\functions.py > > I want to launch IDLE, imp

[Tutor] import a module

2005-12-21 Thread Christopher Spears
I'm feeling a little foolish because I cannot do this. I created a module called functions (Clever, huh?) at this path: C:\Documents and Settings\Christopher Spears\My Documents\programming\PythonScripts\Part4\Ex07\functions.py I want to launch IDLE, import the file, and use it. I tried: impor

[Tutor] Performance of Python loops vs multiple MySQL queries

2005-12-21 Thread Bernard Lebel
Hello, Finally, after a year and a half of learning and messing around with Python, I'm writing THE code that made learn Python in the first place: a render farm client management software. I may have several questions regarding this, but for now I only have one. The script I'm writing is the cli

Re: [Tutor] Differnce between java and python

2005-12-21 Thread pcarey
Mr Gauld wrote: >Python is more forgiving Could you elaborate on this feature? Thanks, Pete ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Differnce between java and python

2005-12-21 Thread Murtog
A good point is that Python is fun to program with. But the jobs point is important too. In my country 80% of the jobs for informatic“s area is to C#, VB, Delphi and Java(50% of the 80%) programmers. So, having a job with Python is hard. :( Cheers! =]On 12/21/05, Alan Gauld <[EMAIL PROTECTED]> wrot

Re: [Tutor] Differnce between java and python

2005-12-21 Thread Alan Gauld
> sir plz tell me the main differnces between java and python? What kind of information do you want? Differences in syntax?, architecture? resource usage? They are completely different programming languages. Do you have a programming background? If so which languages do you know? That way we ca

[Tutor] Pygame mailing list info needed

2005-12-21 Thread Johan Geldenhuys
Hi, I subscribed to the pygame-users mailing list through [EMAIL PROTECTED], but I don't know where to send the mail too so that everybody can see it. Any suggestion on how to use that mailing list? Thanks, Johan ___ Tutor maillist - Tutor@python.or

Re: [Tutor] Differnce between java and python

2005-12-21 Thread Kent Johnson
Pujo Aji wrote: > Hi, > > you can check this website: > http://www.ferg.org/projects/python_java_side-by-side.html Don't miss the links on that site, either. Compared to Java, Python is compact, expressive and lightweight. It is dynamically typed with first-class functions and far better built

Re: [Tutor] Differnce between java and python

2005-12-21 Thread Pujo Aji
Hi,you can check this website:http://www.ferg.org/projects/python_java_side-by-side.htmlabove all.python is very compact, clear language. I did some code using C# for 1 year, and when I move to python I can rewrite it even more in about 3 months.My code becomes clearer than ever beforeCheers,pu

[Tutor] Differnce between java and python

2005-12-21 Thread shivayogi kumbar
sir plz tell me the main differnces between java and python?And What are the advantages of python? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor