Re: [Tutor] tuples and mysqldb tables (fwd)

2005-09-19 Thread Ed Hotchkiss
Thanks for the link! It is EXACTLY what I have been looking for. When I used to use Flash a bit, and did some actionscript they had a similiar setup for OOP (Do all languages use OOP so similiarly?) which I never learned. I'm doing these examples, and now I'm going to try and rework the code from t

Re: [Tutor] tuples and mysqldb tables (fwd)

2005-09-19 Thread Danny Yoo
> Thanks for the debugging help :P - I've edited the error handling line, and > defined the port_counter above, but I am still not getting any output. I > have inserted print "scanned: ",port_counter,"\n" > into the thread, so that should at least print to screen each time the > thread is ran, re

Re: [Tutor] tuples and mysqldb tables (fwd)

2005-09-19 Thread Danny Yoo
t;[EMAIL PROTECTED]> To: Danny Yoo <[EMAIL PROTECTED]> Subject: Re: [Tutor] tuples and mysqldb tables Thanks for the debugging help :P - I've edited the error handling line, and defined the port_counter above, but I am still not getting any output. I have inserted print "scanned: ",p

Re: [Tutor] tuples and mysqldb tables

2005-09-18 Thread Danny Yoo
> def run(self): > try: > ss = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > ss.connect((ip, port_counter)) > print "%s | %d OPEN" % (ip, port_counter) > ss.close() > except: pass Hi Ed, Yikes. Don't do that. *grin* By "that",

Re: [Tutor] tuples and mysqldb tables

2005-09-18 Thread Ed Hotchkiss
  I was cheap and I skimmed through "programming python" then jumped off a cliff and went right into it with a ripped parachute. I did a tutorial today and I solved the problem. I'm having a problem with threads and sockets now ... I wrote a lot of code for this and it should work based on my under

Re: [Tutor] tuples and mysqldb tables

2005-09-18 Thread Danny Yoo
Hi Ed, Let's look at one of your questions: > How do I use a loops to iterate through the nested tuple Let's separate this apart from the SQL stuff for the moment. Are you familiar with Python's for loop, and how it can work on sequences? For example: ## >>> authors = ['fowler', 'lau',

[Tutor] tuples and mysqldb tables

2005-09-18 Thread Ed Hotchkiss
I have used fetchall() to insert the values from a table into a tuple. anywhere from 0 - ? many rows could be in this tuple, so it is a row within a row. How do I use a loops to iterate through the nested tuple, and assign the tuples integers and strings to variables, ugh :P   The Tables data is l