Re: [Tutor] Open source projects build using Python

2012-04-03 Thread Simon Yan
On Wed, Apr 4, 2012 at 1:41 AM, Mark Lawrence wrote: > On 03/04/2012 18:22, Alan Gauld wrote: > >> On 03/04/12 15:45, Simon Yan wrote: >> >> Do a search on SourceForge and Google and see what comes up. >> >> > Hopefully codeplex.com amongst others. > > Hey Guys, Thank you all for the good suggest

Re: [Tutor] generators

2012-04-03 Thread wesley chun
> On Tue, Apr 3, 2012 at 2:38 PM, mike jackson wrote: > I am trying understand python and have done fairly well, So for it has been > easy to learn and is concise.  However I seem to not quite understand the use > of a generator over a function(I am familiar with functions [other languages > an

Re: [Tutor] Question about login=''.join(choice(lc) for j in range(llen))

2012-04-03 Thread wesley chun
On Tue, Apr 3, 2012 at 10:50 AM, Peter Otten <__pete...@web.de> wrote: > Alan Gauld wrote: >> On 03/04/12 15:54, Khalid Al-Ghamdi wrote: >> >>>      dom="".join(choice(lc) for j in range (dlen)) >>> >>> how does the interpreter know what "j" is supposed to refer to when it >>> was not mentioned pri

Re: [Tutor] generators

2012-04-03 Thread Joel Goldstick
On Tue, Apr 3, 2012 at 2:38 PM, mike jackson wrote: > I am trying understand python and have done fairly well, So for it has been > easy to learn and is concise.  However I seem to not quite understand the use > of a generator over a function(I am familiar with functions [other languages > and

Re: [Tutor] New to Python programing

2012-04-03 Thread wesley chun
a couple of other sources of video learning (DISCLAIMER: the 1st is from my employer, and the 2nd is from me -- the intention is to provide alternatives not shameless self-promotion so please don't take it that way!): 1. Google offers an internal Python training class to its employees. it's a 2-da

Re: [Tutor] generators

2012-04-03 Thread Abhishek Pratap
Hey Mike The following link should help you. http://www.dabeaz.com/generators/ . Cool slide deck with examples from David Beazley's explanation of generators. -A On Tue, Apr 3, 2012 at 11:38 AM, mike jackson wrote: > I am trying understand python and have done fairly well, So for it has be

[Tutor] generators

2012-04-03 Thread mike jackson
I am trying understand python and have done fairly well, So for it has been easy to learn and is concise.  However I seem to not quite understand the use of a generator over a function(I am familiar with functions [other languages and math]).  To me (excepting obvious syntax differences) a gener

Re: [Tutor] Question about login=''.join(choice(lc) for j in range(llen))

2012-04-03 Thread Peter Otten
Alan Gauld wrote: > On 03/04/12 15:54, Khalid Al-Ghamdi wrote: > >> dom="".join(choice(lc) for j in range (dlen)) >> >> how does the interpreter know what "j" is supposed to refer to when it >> was not mentioned prior? > > In Python variables are defined by using them. > > In the code belo

Re: [Tutor] Open source projects build using Python

2012-04-03 Thread Mark Lawrence
On 03/04/2012 18:22, Alan Gauld wrote: On 03/04/12 15:45, Simon Yan wrote: Do a search on SourceForge and Google and see what comes up. Hopefully codeplex.com amongst others. -- Cheers. Mark Lawrence. ___ Tutor maillist - Tutor@python.org To un

Re: [Tutor] New to Python programing

2012-04-03 Thread Brad Hudson
>> Are you possibly thinking of the Khan Academy [1] ? >> >> [1] http://www.khanacademy.org/ If you're interested in free courses, MIT also has free programming courses (done in Python) via their OpenCourseWare and will be expanding this to MITx in the near future. OpenCourseWare - Intro to Compu

Re: [Tutor] Question about login=''.join(choice(lc) for j in range(llen))

2012-04-03 Thread Alan Gauld
On 03/04/12 15:54, Khalid Al-Ghamdi wrote: dom="".join(choice(lc) for j in range (dlen)) how does the interpreter know what "j" is supposed to refer to when it was not mentioned prior? In Python variables are defined by using them. In the code below you have i used in a for loop, even t

Re: [Tutor] Open source projects build using Python

2012-04-03 Thread Alan Gauld
On 03/04/12 15:45, Simon Yan wrote: projects which I can work on, but just wanted to hear some recommendations what are the ones good for a long time Python "reader"? One that interests you. I might think that a system to control the irrigation of my hydroponics garden is fascinating but you

Re: [Tutor] Open source projects build using Python

2012-04-03 Thread bob gailer
On 4/3/2012 10:45 AM, Simon Yan wrote: Dear All, I've been working on Python for a while but haven't got any chance to work on any projects yet. I've spent most of my time reading codes. (I know this is bad when you want to actually learn a programming language) It would be a better idea that

Re: [Tutor] Question about login=''.join(choice(lc) for j in range(llen))

2012-04-03 Thread Emile van Sebille
On 4/3/2012 7:54 AM Khalid Al-Ghamdi said... Hi, The following code tries to generate some dummy data for regex exercises. My question is in reference the line before last: dom="".join(choice(lc) for j in range (dlen)) how does the interpreter know what "j" is supposed to refer to when it

[Tutor] Question about login=''.join(choice(lc) for j in range(llen))

2012-04-03 Thread Khalid Al-Ghamdi
Hi, The following code tries to generate some dummy data for regex exercises. My question is in reference the line before last: dom="".join(choice(lc) for j in range (dlen)) how does the interpreter know what "j" is supposed to refer to when it was not mentioned prior? from random import r

[Tutor] Open source projects build using Python

2012-04-03 Thread Simon Yan
Dear All, I've been working on Python for a while but haven't got any chance to work on any projects yet. I've spent most of my time reading codes. (I know this is bad when you want to actually learn a programming language) It would be a better idea that I can start to join an open source projects

Re: [Tutor] New to Python programing

2012-04-03 Thread Cranky Frankie
On Tue, Apr 3, 2012 at 10:09 AM, Christian Witts wrote: > Are you possibly thinking of the Khan Academy [1] ? > > [1] http://www.khanacademy.org/ Yes, that was it, thanks. -- Frank L. "Cranky Frankie" Palmeri Risible Riding Raconteur & Writer “The problem with quotes on the Internet is that i

Re: [Tutor] New to Python programing

2012-04-03 Thread Christian Witts
On 2012/04/03 03:50 PM, Cranky Frankie wrote: Another resourse for learning to program is YouTube. They just had a segment on "60 Minutes" about a guy who does all kinds of well regarded free courses on-line, unfortunately I can't remberber the URL. I've viewed several Stanford University program

[Tutor] New to Python programing

2012-04-03 Thread Cranky Frankie
Another resourse for learning to program is YouTube. They just had a segment on "60 Minutes" about a guy who does all kinds of well regarded free courses on-line, unfortunately I can't remberber the URL. I've viewed several Stanford University programming courses, and there are many Python specific

Re: [Tutor] breeds of Python .....

2012-04-03 Thread Wayne Werner
On Sat, 31 Mar 2012, Modulok wrote: If you're just starting out, go with 3.x. If you have a need for some third party modules that aren't yet available for 3.x, you'll have to stick with 2.x. For a handy list, check out the Python3 Wall of Shame (soon to be superpowers?) http://python3wos.appsp

Re: [Tutor] New to Python programing

2012-04-03 Thread Wayne Werner
On Mon, 2 Apr 2012, wesley chun wrote: greetings walter, and welcome to the Python family! as far as books go, the best way to learn Python is by writing games. this is an approach that works both with children as well as adults. there are several excellent books that can help you with this r

Re: [Tutor] group txt files by month

2012-04-03 Thread Alan Gauld
On 03/04/12 04:59, questions anon wrote: I have a list of txt files that contain daily rainfall for many years. They are set out like: r20110101.txt r20110102.txt r20110103.txt and so on for each day for many years. MainFolder=r"E:/Rainfalldata/" outputFolder=r"E:/test/" for (path, dirs, files)