Re: [Tutor] Trying to enter text from a file to a Dictionary

2006-01-28 Thread Alan Gauld
Hi Bob, > "list comprehension" (once understood) is often easier to read and more > efficient than the for loop. They are often more efficient but I don't know if I'd ever claim they were easier to read than an explicit for loop. Perhaps the most trivial cases like z = [x*2 for x in L] and

Re: [Tutor] Trying to enter text from a file to a Dictionary

2006-01-28 Thread Kent Johnson
Alan Gauld wrote: > Hi Bob, > > >>"list comprehension" (once understood) is often easier to read and more >>efficient than the for loop. > > > They are often more efficient but I don't know if I'd ever claim they were > easier to read than an explicit for loop. Perhaps the most trivial cases

[Tutor] remove from mailing list

2006-01-28 Thread kristi holsinger
please remove [EMAIL PROTECTED] from the mailing list! thank you ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] beginner

2006-01-28 Thread tony
  iam beginner, Iam try to use pyhon What should  I do to understhand python langguage, thanks ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Iam beginner

2006-01-28 Thread tony
  Hallo my name is tony iam from indonesia, Iam beginer iam try use python for my music program via athenaCL. what should I so, to understhand  python langguage ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] remove from mailing list

2006-01-28 Thread Tim Peters
[kristi holsinger] > please remove [EMAIL PROTECTED] from the mailing list! thank you This is self-service. You need to go to http://mail.python.org/mailman/listinfo/tutor and unsubscribe youself (look for the "Unsubscribe or edit options" button near the bottom of the page). _

Re: [Tutor] Trying to enter text from a file to a Dictionary

2006-01-28 Thread Terry Carroll
On Sat, 28 Jan 2006, Kent Johnson wrote: > I find simple list comps far easier to read and write than the > equivalent for loop, and they fit the way I think about problems... I don't know if my experience is typical, but I found list comprehensions difficult to get. There's something, maybe ab

Re: [Tutor] beginner

2006-01-28 Thread Kent Johnson
tony wrote: > iam beginner, Iam try to use pyhon What should I do to understhand > python langguage, thanks The Beginners Guide has some suggestions: http://wiki.python.org/moin/BeginnersGuide Kent ___ Tutor maillist - Tutor@python.org http://mai

[Tutor] Off-topic query for rur-ple users

2006-01-28 Thread Andre Roberge
Please, accept my apologies to bring this slightly off-topic question. This is the only way I know to reach RUR-PLE users. How important is it to have a browser included within rur-ple itself? Would there be any objections in eliminating the browser, and using your favourite browser (firefox, et

[Tutor] email-sending..

2006-01-28 Thread jan.n
Hello,i am trying to send emails through a python script , but it complains thatsocket error 10061 conection refused..any help with this would be great...import smtplibsmtpserver = 'mailserver'AUTHREQUIRED = 1 # if you need to use SMTP AUTH set to 1smtpuser = '#'  # for SMTP AUTH, set SMTP user

Re: [Tutor] email-sending..

2006-01-28 Thread Danny Yoo
Hi Jan, Side question: how much Python do you know already? It really seems like you've just picked up an introductory example, so I'm not exactly sure I see where you might be getting stuck or what things you've tried already. Anyway, when you mention: > i am trying to send emails through a

Re: [Tutor] Searching for email id in MySQL giving wrong results

2006-01-28 Thread John Joseph
Hi I am sending the code of the function "searchbyemail" and the output of the program when I run I am trying to search and display the results , even if we give a part of the email_id thanks Joseph John SEARCH by email _id functi