a potential pep to extend the syntax of for loops

2009-03-09 Thread pang
Hello, This is an idea about something I'd like to see implemented in python. I understand that's the purpose of PEPs, so I'll write it as a PEP, but send it here to receive your valuable feedback. Abstract This is a proposal to increase the richness of for loops, only to the extent that it e

Re: a potential pep to extend the syntax of for loops

2009-03-09 Thread pang
for x in range(10) for y in range(10) if x+y==5: print x,y > What is that supposed to mean? Nested looping? Why is that (confusing > thing) better than: > > from itertools import product > > for x, y in product(range(10), range(10)) if x + y == 5: >      print x, y > That confusing

Re: a potential pep to extend the syntax of for loops

2009-03-10 Thread pang
> This idea has already been proposed and rejected.  But discuss away as > you wish ;=). > > tjr Where is that? I didn't see any related pep's. Could you post a link? -- http://mail.python.org/mailman/listinfo/python-list

Re: a potential pep to extend the syntax of for loops

2009-03-10 Thread pang
> > Sorry, no. > > tjr well, thank you Even now it's difficult to find the discussion, but at least I know about python-ideas. Thanks to all that replied. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't run program

2020-05-19 Thread Yong Pang
Hi Ryan Harrington wrote: Hi - I'm not the least bit technical. Trying to learn through YouTube. I've gotten exit code 1, 2, 106. Tried setting up the project interpreter and can't figure it out. Tried uninstalling and reinstalling everything and still having problems. Any feedback appreciated.

Re: Python Newbie Suggestions

2007-05-16 Thread Jeff Pang
I'm interested in konwing that for python and perl,which is easier for start? Please note: message attached As a newbie, Python has my vote for beginners. It is easy to get started with some quick and satisfying scripts but tricky to learn good OOP form. That's why I highly recommend the Progr

Re: [ANN] Python courses this Fall

2007-08-23 Thread Jeff Pang
Sounds good.How about the costs for those lessons?thanks. -- "wesley chun" <[EMAIL PROTECTED]> wrote: Folks, I'd like to announce my final Python courses for 2007: Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's well-received "Core

transmit an array via socket

2007-10-26 Thread Jeff Pang
I want to transmit an array via socket from a host to another. How to do it? thank you. --jeff _ Largest network of startups. Find new startup opportunities. Click here. http://thirdpartyoffers.juno.com/TGL2111/fc/Ioyw6iieVGxKk95ANW9UY46Z

gmail api

2017-02-06 Thread Kelvid Pang
hi, I am trying to gmail api with reference to this URL: https://developers.google.com/gmail/api/quickstart/python But I couldn't find the 'gmail-python-quickstart.json' file. Any one can help? thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: gmail api

2017-02-09 Thread Kelvid Pang
On Tuesday, 7 February 2017 14:22:32 UTC+8, Kelvid Pang wrote: > hi, > > I am trying to gmail api with reference to this URL: > https://developers.google.com/gmail/api/quickstart/python > > But I couldn't find the 'gmail-python-quickstart.json' file. Any one ca