Re: [Tutor] Socket not connecting

2011-10-19 Thread Alan Gauld
On 19/10/11 23:57, Christopher King wrote: (I might try increasing the listen value to say 3 or 5 but it shouldn't really be necessary) What exactly is the listen value (by the way, I'm jake's friend he was talking about.) It's essentially the number of messages in the queue. If you on

Re: [Tutor] Socket not connecting

2011-10-19 Thread Christopher King
> > (I might try increasing the listen value to say 3 or 5 but it shouldn't > really be necessary) What exactly is the listen value (by the way, I'm jake's friend he was talking about.) ___ Tutor maillist - Tutor@python.org To unsubscribe or change sub

Re: [Tutor] tkinter binding issues

2011-10-19 Thread Wayne Werner
On Wed, Oct 19, 2011 at 9:05 AM, Elwin Estle wrote: > So, here is the first 'bug'. In all three of the callback > functions, I added an extra dummy parameter because I kept getting an error > message about the callback wanting two parameters, even though I do not pass > any parameters and don't

[Tutor] logging question

2011-10-19 Thread Alex Hall
Hi all, I have never done logging before, and I am wondering how it will change my script. Currently, I have something like this: for book in results: try: checkForErrors(book) except Exception, e: print e continue That way I see any errors in a given book, but that book is skipped and the l

Re: [Tutor] regex and parsing through a semi-csv file

2011-10-19 Thread Marc Tompkins
On Wed, Oct 19, 2011 at 12:06 PM, Marc Tompkins wrote: > This approach also works in the event that the data wasn't all collected in > order - i.e. there might be data for Ag111 followed by U235 followed by > Ag111 again. > > Ahem... Of course, I meant "Ag47 followed by U235 followed by Ag47 agai

Re: [Tutor] regex and parsing through a semi-csv file

2011-10-19 Thread Marc Tompkins
On Wed, Oct 5, 2011 at 11:12 AM, Mina Nozar wrote: > Now, I would like to parse through this code and fill out 3 lists: 1) > activity_time, 2) activity, 3) error, and plot the activities as a function > of time using matplotlip. My question specifically is on how to parse > through the lines con

Re: [Tutor] regex and parsing through a semi-csv file

2011-10-19 Thread Mina Nozar
Hello Wayne, Thank you for your help and sorry for the delay in the response. I was caught up with other simulation jobs and didn't get around to testing what you suggested until yesterday. On 11-10-05 01:24 PM, Wayne Werner wrote: On Wed, Oct 5, 2011 at 1:12 PM, Mina Nozar mailto:noz...@tri

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

2011-10-19 Thread bob gailer
On 10/19/2011 1:10 PM, Navneet wrote: dude you are rude yaar :)...just chill I am new to python and programming ...but one thing ...you must be a damn good trainer :) Thanks for your reply. Please always reply-all so a copy goes to the list, I hear you are new to Python, and want to be re

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

2011-10-19 Thread bob gailer
On 10/19/2011 11:50 AM, Navneet wrote: Thank you Bob and Dave, Yes the file is as you expected, I don't understand that comment. I thought it is easy to figure out that you have to change the file location in program Don't make that assumption. Of course we can figure that out, but you sh

Re: [Tutor] Other ways to use raw_input function

2011-10-19 Thread amt
Thanks a lot Alan for helping me out every time. Also thanks Wayne! Regards, amt. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Project

2011-10-19 Thread Alan Gauld
On 19/10/11 05:06, Narguess Dadfar wrote: I have to project all shapefiles to NAD_1983_UTM_Zone_10N Means nothing to me... I use Python 2.6 what codes I have used is as follow: Well done. Does it work? If not what doesn't work? Do you get error messages? What do they say? Is the data dif

Re: [Tutor] Socket not connecting

2011-10-19 Thread Alan Gauld
On 19/10/11 00:26, Jacob Bender wrote: worked on my computer, and executed perfectly. OK, So it probably a networking config issue. running the host program. The host program did absolutely nothing and my IP was programmed into the client as the "Host IP". Is it a DHCP generated IP address