Re: [Tutor] Help needed

2011-04-08 Thread Andre Engels
On Fri, Apr 8, 2011 at 3:57 AM, Aaron Brown wrote: > I am in an online python class and am failing badly.  I am not sure where > the problem is here but any insight would be great. > > def main(): >     while (True): >     allowed = int(input("Please enter minutes allowed between 100 and > 700

Re: [Tutor] Help needed

2011-04-08 Thread Alan Gauld
"Aaron Brown" wrote I am in an online python class and am failing badly. I am not sure where the problem is here but any insight would be great. When posting always include the full error text since it usually helps locate the precise location more clearly than a verbal description or summ

Re: [Tutor] Help needed

2011-04-08 Thread Christian Witts
On 08/04/2011 03:57, Aaron Brown wrote: I am in an online python class and am failing badly. I am not sure where the problem is here but any insight would be great. def main(): while (True): allowed = int(input("Please enter minutes allowed between 100 and 700: ")) used =

[Tutor] Sound question

2011-04-08 Thread Jan Erik Moström
Hi, A couple of my students need to be able to play sounds, controlling start & stop, play sound from files and if possible generate sinus wave sounds. I looked around and found several packages but they all seem to have some kind platform restrictions. Does anyone have recommendations for what

Re: [Tutor] How to use a module when only import package

2011-04-08 Thread leechau
Steven wrote: leechau wrote: I wrote module1 in package1, and want to use a method named 'method1' in module1, the caller(test.py) is like this: import package1 package1.module1.method1() [...] When i run test.py, the output is: AttributeError: 'module' object has no attribute 'module1' File

Re: [Tutor] Sound question

2011-04-08 Thread col speed
On 8 April 2011 15:54, Jan Erik Moström wrote: > Hi, > > A couple of my students need to be able to play sounds, controlling start & > stop, play sound from files and if possible generate sinus wave sounds. > > I looked around and found several packages but they all seem to have some > kind platf

Re: [Tutor] Sound question

2011-04-08 Thread Emmanuel Ruellan
On Fri, Apr 8, 2011 at 10:54 AM, Jan Erik Moström wrote: > > > A couple of my students need to be able to play sounds, controlling start & > stop, play sound from files and if possible generate sinus wave sounds. > I've used Snack to generate sounds on both Windows and Linux. http://www.speech.k

[Tutor] NLP

2011-04-08 Thread Ranjith Kumar
Hi all, Can anyone suggest me any best Natural Language Processing in python other than nltk. -- Cheers, Ranjith Kumar K, Chennai. http://ranjithtenz.wordpress.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription option

[Tutor] Evaluating program running time?

2011-04-08 Thread Cory Teshera-Sterne
Hi all, I have a small(ish) Python program, and I need to be able to log the running time. This isn't something I've ever really encountered, and I've been led to believe it can be a little hairy. Are there any Python-specific approaches to this? I found the "timeit" module, but that doesn't seem

Re: [Tutor] Evaluating program running time?

2011-04-08 Thread bob gailer
On 4/8/2011 2:29 PM, Cory Teshera-Sterne wrote: Hi all, I have a small(ish) Python program, and I need to be able to log the running time. This isn't something I've ever really encountered, and I've been led to believe it can be a little hairy. Are there any Python-specific approaches to this

Re: [Tutor] Evaluating program running time?

2011-04-08 Thread Prasad, Ramit
Odd, my previous email seems to have gotten lost Cory, See: http://stackoverflow.com/questions/156330/get-timer-ticks-in-python It is basically what Bob mentions, but with a few more details / alternatives. Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main S

Re: [Tutor] Evaluating program running time?

2011-04-08 Thread Prasad, Ramit
Cory, See: http://stackoverflow.com/questions/156330/get-timer-ticks-in-python Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 From: tutor-bounces+ramit.prasad=jpmchase@python.org [mailto:tutor-bo

Re: [Tutor] How to use a module when only import package

2011-04-08 Thread Karim
On 04/08/2011 11:13 AM, leechau wrote: Steven wrote: leechau wrote: I wrote module1 in package1, and want to use a method named 'method1' in module1, the caller(test.py) is like this: import package1 package1.module1.method1() [...] When i run test.py, the output is: AttributeError: 'module

Re: [Tutor] Sound question

2011-04-08 Thread Alan Gauld
"Jan Erik Moström" wrote A couple of my students need to be able to play sounds, ... I looked around and found several packages but they all seem to have some kind platform restrictions. Sound tends to be platform specific but pygame seems to have hidden most of that. Then again it may not

[Tutor] Python 3.2 Install Not Responding To Python Command!!

2011-04-08 Thread Nevins Duret
Hello Everyone, I recently installed python3.2 by building it from source and noticed that it may have not been installed 100% correctly. When I type: python in the Terminal in Ubuntu 10.10 Maverick, I'm noticing that get the error: bash: /usr/bin/python: is a directory However, when I

Re: [Tutor] Sound question

2011-04-08 Thread Nick Stinemates
On Fri, Apr 8, 2011 at 5:12 PM, Alan Gauld wrote: > > "Jan Erik Moström" wrote > > A couple of my students need to be able to play sounds, ... >> >> >> I looked around and found several packages but they all >> seem to have some kind platform restrictions. >> > > Sound tends to be platform speci

Re: [Tutor] Python 3.2 Install Not Responding To Python Command!!

2011-04-08 Thread Lie Ryan
On 04/09/11 11:25, Nevins Duret wrote: > Hello Everyone, > > I recently installed python3.2 by building it from source and > noticed that it may have not been > installed 100% correctly. This is probably off topic in python tutor mailing list, better asked on the main mailing list or Ubuntu

Re: [Tutor] Evaluating program running time?

2011-04-08 Thread Lie Ryan
On 04/09/11 04:29, Cory Teshera-Sterne wrote: > Hi all, > > I have a small(ish) Python program, and I need to be able to log the > running time. This isn't something I've ever really encountered, and > I've been led to believe it can be a little hairy. Are there any > Python-specific approaches to