Re: [Tutor] multi-threaded/parallel processing - local tutor

2011-01-22 Thread शंतनू
You may find following useful. 2.6+ --- http://docs.python.org/library/multiprocessing.html 3.x --- http://docs.python.org/dev/library/multiprocessing.html On 23-Jan-2011, at 11:46 AM, bruce wrote: > Hi. > > I'm working on a project that uses python to spawn/create multiple > threads, to run p

[Tutor] multi-threaded/parallel processing - local tutor

2011-01-22 Thread bruce
Hi. I'm working on a project that uses python to spawn/create multiple threads, to run parallel processes to fetch data from websites. I'm looking to (if possible) go over this in person with someone in the San Fran area. Lunch/beer/oj can be on me!! It's a little too complex to try to describe h

Re: [Tutor] Help on RE

2011-01-22 Thread tee chwee liong
elegant. :) simple yet elegant. > Date: Sun, 23 Jan 2011 14:10:35 +1100 > From: st...@pearwood.info > To: tutor@python.org > Subject: Re: [Tutor] Help on RE > > tee chwee liong wrote: > > thanks for making me understand more on re. re is a confusing topic as i'm > > starting on python. >

Re: [Tutor] Help on RE

2011-01-22 Thread Steven D'Aprano
tee chwee liong wrote: thanks for making me understand more on re. re is a confusing topic as i'm starting on python. I quote the great Jamie Zawinski, a world-class programmer and hacker: Some people, when confronted with a problem, think 'I know, I'll use regular expressions." Now th

Re: [Tutor] Help on RE

2011-01-22 Thread Steve Willoughby
On Sun, Jan 23, 2011 at 12:38:10AM +, tee chwee liong wrote: > i have a set of data and using re to extract it into array. however i only > get positive value, how to extract the whole value including the -ve sign? > numbers = re.findall("\d+", line) The \d matches a digit character. \d

Re: [Tutor] Help on RE

2011-01-22 Thread tee chwee liong
thanks for making me understand more on re. re is a confusing topic as i'm starting on python. > Date: Sat, 22 Jan 2011 16:55:37 -0800 > From: st...@alchemy.com > To: tc...@hotmail.com > CC: tutor@python.org > Subject: Re: [Tutor] Help on RE > > On Sun, Jan 23, 2011 at 12:38:10AM +, tee c

Re: [Tutor] Help on RE

2011-01-22 Thread tee chwee liong
thanks it works!! :) > Date: Sat, 22 Jan 2011 19:51:35 -0500 > Subject: Re: [Tutor] Help on RE > From: ja...@pearachute.com > To: tc...@hotmail.com > CC: tutor@python.org > > it's a bug in your regex - you want something like "-?\d+" > > - japhy > > On Sat, Jan 22, 2011 at 7:38 PM, tee chwee

[Tutor] Help on RE

2011-01-22 Thread tee chwee liong
hi, i have a set of data and using re to extract it into array. however i only get positive value, how to extract the whole value including the -ve sign? For eg: Platform: PC Tempt : 25 TAP0 :0 TAP1 :1 + Port Chnl Lane EyVt EyHt +

Re: [Tutor] Exercise suggestions

2011-01-22 Thread Steven D'Aprano
Elwin Estle wrote: I seem to remember that Python (is it supposed to be capitalized? Official logo is in lower case) The official logo of Apple doesn't even have an "A" in it, but we don't spell the company "pple" :) By long-standing convention and practice, the programming language is s

Re: [Tutor] Exercise suggestions

2011-01-22 Thread Alan Gauld
"michael scott" wrote don't need a person walking me through it, a simple, "build a program that asks a user to give you a name and create permutations of it" is great. Of course that example is elementary, but that is the gist of the responses I'm looking for. So have you done it yet? An

Re: [Tutor] Telephone app

2011-01-22 Thread Alan Gauld
"David Hutto" wrote I'm getting ahead and behind my self here. I'm going from electrician to programmer. So I'm tring to construct the 'flow through' and the functional flow through. Can you step back a bit and explain what it is you are trying to accomplish? "flow through" and "functional

Re: [Tutor] Telephone app

2011-01-22 Thread Alan Gauld
"David Hutto" wrote No, its just wondering whether it works like the USB, with two data pins, and -+, I know how the original works, but interpreting through computer language is a little disabling. The original what? What works like USB? A traditional analog line works with a 2 wire sign

Re: [Tutor] Telephone app

2011-01-22 Thread Alan Gauld
"David Hutto" wrote This is just a reach question. What modules would i want to use if i wanted to just send the signal, and receive the signal, other than maybe, signal. In other words please tone.dumb it down, and show a pseudo example. We need a lot more info. How are you interfacing and

Re: [Tutor] Exercise suggestions

2011-01-22 Thread wesley chun
> [...] I'm finding that I > understand concepts, but have no real way to implement them. > > So now my problem emerges... can anyone give me suggestions of exercises I > should do to help improve  my knowledge of what I can "actually" do with the > concepts I have. michael, first of all, welcom

Re: [Tutor] Exercise suggestions

2011-01-22 Thread Elwin Estle
Okay, here's another one.  I started this geez...30 years ago?  On a Texas Instruments 99/4A computer.  I've never gotten around to doing anything further with the idea. It was a game called "Piledriver".  The idea was that in a distant future, energy demands had become so great that there were

[Tutor] python wallpapers

2011-01-22 Thread Elwin Estle
I dabble in Blender 3d. Just for the heck of it, I made some desktop wallpapers using the python logo.  Enjoy or not, as suits your fancy. http://thepythonnoob.blogspot.com/2011/01/some-3d-python-wallpapers.html ___ Tutor maillist - Tutor@p

Re: [Tutor] Exercise suggestions

2011-01-22 Thread ian douglas
For me, the quickest way to jump into a programming language was seeing a current open source project and say "I wish it did this too, or that instead ..." and implement it myself. Not only do you learn about the project itself, and pick up some tips and tricks along the way, you then also have

Re: [Tutor] Exercise suggestions

2011-01-22 Thread Elwin Estle
Well, I'm a noob myself, so perhaps take what I say with a grain or three of salt.  On the other hand, I have sort of the opposite problem, lots of ideas, but not the time nor skill to make them happen. Do you even necessarily have to complete a project?  Sometimes just making an attempt can te

Re: [Tutor] Exercise suggestions

2011-01-22 Thread Corey Richardson
On 01/22/2011 03:09 PM, David Hutto wrote: When I felt I was ready to start doing some work, I got involved in an open source project. It's definitely an experience! Try going through http://freshmeat.net/ Isn't that for those that aren't given real apprenticeship?:) Programming is my hobby,

Re: [Tutor] Telephone app

2011-01-22 Thread David Hutto
I'm getting ahead and behind my self here. I'm going from electrician to programmer. So I'm tring to construct the 'flow through' and the functional flow through. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http:

Re: [Tutor] Telephone app

2011-01-22 Thread David Hutto
No, its just wondering whether it works like the USB, with two data pins, and -+, I know how the original works, but interpreting through computer language is a little disabling. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscriptio

Re: [Tutor] Telephone app

2011-01-22 Thread Walter Prins
Hi David, On 22 January 2011 20:03, David Hutto wrote: > This is just a reach question. What modules would i want to use if i > wanted to just send the signal, and receive the signal, other than > maybe, signal. In other words please tone.dumb it down, and show a > pseudo example. > I've read

Re: [Tutor] Exercise suggestions

2011-01-22 Thread R. Alan Monroe
> I just have no idea of what kind of programs to build, Some of the stock answers for this question are: http://projecteuler.net/ http://www.pythonchallenge.com/ I usually suggest porting one of the old games in: http://www.atariarchives.org/basicgames/ Alan ___

[Tutor] Telephone app

2011-01-22 Thread David Hutto
This is just a reach question. What modules would i want to use if i wanted to just send the signal, and receive the signal, other than maybe, signal. In other words please tone.dumb it down, and show a pseudo example. -- The lawyer in me says argue...even if you're wrong. The scientist in me...

Re: [Tutor] Exercise suggestions

2011-01-22 Thread David Hutto
On Sat, Jan 22, 2011 at 3:02 PM, Corey Richardson wrote: > On 01/22/2011 11:56 AM, michael scott wrote: >> >> I am new to programming, I intend to get an entry level job programming >> next year (or a little bit longer). I am switching fields and not going >> to college, but kinda "self teaching"

Re: [Tutor] Exercise suggestions

2011-01-22 Thread Corey Richardson
On 01/22/2011 11:56 AM, michael scott wrote: I am new to programming, I intend to get an entry level job programming next year (or a little bit longer). I am switching fields and not going to college, but kinda "self teaching" myself through various methods. I currently understand concepts in pro

Re: [Tutor] unable to build python-2.7.1

2011-01-22 Thread Emile van Sebille
On 1/21/2011 10:17 AM brian.she...@pmaclabs.com said... I would have thought that building python-2.7.1 would be pretty straightforward - even on an SGI Altix. There were no issues when I ran configure. However, running make results in the following compile error: You should ask this on the po

[Tutor] Exercise suggestions

2011-01-22 Thread michael scott
I am new to programming, I intend to get an entry level job programming next year (or a little bit longer). I am switching fields and not going to college, but kinda "self teaching" myself through various methods. I currently understand concepts in programming in python up to classes (like I un