[Tutor] Performance measurement tools

2011-10-18 Thread Ashish Gaonker
Hi Can you suggest the best performance measurent tools for python programs. specifically thread based python modules. -- Thanks & Regards Ashish Gaonker ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail

Re: [Tutor] Performance measurement tools

2011-10-18 Thread Hugo Arts
On Tue, Oct 18, 2011 at 10:49 AM, Ashish Gaonker wrote: > Hi > Can you suggest the best performance measurent tools for python programs. > specifically thread based python modules. > -- > Thanks & Regards > Ashish Gaonker I've heard very good things about yappi: http://code.google.com/p/yappi/ _

Re: [Tutor] Keyboard Module

2011-10-18 Thread Wayne Werner
On Mon, Oct 17, 2011 at 8:25 PM, Ryan Strunk wrote: > > Bloated carries the connotation of unnecessary code, but pygame provides > a lot of functionality. You may not need it all, and using pygame may > require you to import more than you need. But thats not quite the same > as saying pygame is b

Re: [Tutor] Keyboard Module

2011-10-18 Thread Alan Gauld
On 18/10/11 02:25, Ryan Strunk wrote: And its not that huge that it should stop you using it. Thanks for the clarification on that. Would there be any benefit to using Pygame in addition to other libraries for game development, It would not be unusual to use other libraries with PyGame. Bu

[Tutor] Other ways to use raw_input function

2011-10-18 Thread amt
Greetings! I got stuck at an exercise from the book learn python the hard way about raw_input function.(exercise 11.2) After reading from docs.python.org I found out that this function can perform standard output without a trailing newline.Also it can take an input line, convert it as a string( st

Re: [Tutor] close failed in file object destructor:

2011-10-18 Thread Navneet
Hi, I am trying to search a list for prime numbers but it's throwing me an error at line no.25. I am not able to figure what exactly is the prob ne help ??? Error is this: $ python "prime1 - Copy.py" Unhandled exception in thread started by Traceback (most recent call last): File "prime1 - Co

Re: [Tutor] Other ways to use raw_input function

2011-10-18 Thread Wayne Werner
On Tue, Oct 18, 2011 at 12:58 PM, amt <0101...@gmail.com> wrote: > Greetings! I got stuck at an exercise from the book learn python the hard > way about raw_input function.(exercise 11.2) > > After reading from docs.python.org I found out that this function can > perform standard output without a

Re: [Tutor] close failed in file object destructor:

2011-10-18 Thread Dave Angel
On 10/18/2011 01:59 PM, Navneet wrote: Hi, I am trying to search a list for prime numbers but it's throwing me an error at line no.25. I am not able to figure what exactly is the prob ne help ??? Error is this: $ python "prime1 - Copy.py" Unhandled exception in thread started by Traceback (mos

Re: [Tutor] close failed in file object destructor:

2011-10-18 Thread bob gailer
Following written before Dave Angel's post but sent afterwards. On 10/18/2011 1:59 PM, Navneet wrote: Hi, I am trying to search a list for prime numbers but it's throwing me an error at line no.25. I am not able to figure what exactly is the prob ne help ??? Error is this: $ python "prime1 -

Re: [Tutor] close failed in file object destructor:

2011-10-18 Thread bob gailer
One more thing - tlock = thread.allocate_lock() should be executed once before starting threads. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/m

Re: [Tutor] Other ways to use raw_input function

2011-10-18 Thread Alan Gauld
On 18/10/11 18:58, amt wrote: After reading from docs.python.org I found out that this function can perform standard output without a trailing newline. It can print a prompt message, yes. > Also it can take an input line, convert it as a string It doesn't convert it

[Tutor] Socket not connecting

2011-10-18 Thread Jacob Bender
Dear Tutors, I'm the same person who asked about intruders getting into my computer via socket. I tried copying a socket program from online, that worked on my computer, and executed perfectly. However, I did not open a port for python, but I do have an exception in my firewall. Anyhow, I cal

Re: [Tutor] Socket not connecting

2011-10-18 Thread Walter Prins
Hi Jacob, On 19 October 2011 00:26, Jacob Bender wrote: > > I'm the same person who asked about intruders getting into my computer > via socket. I tried copying a socket program from online, that worked on my > computer, and executed perfectly. However, I did not open a port for python, > b

[Tutor] Project

2011-10-18 Thread Narguess Dadfar
I have to project all shapefiles to NAD_1983_UTM_Zone_10N I use Python 2.6 what codes I have used is as follow: import arcpy inFolder = arcpy.GetParameterAsText(0) outC = arcpy.GetParameterAsText(1) arcpy.env.workspace = inFolder fcList = arcpy.ListFeatureClasses() try: desc = arcpy.Describe(ou