ov3rcl0ck 25 Junior Poster

Using a standard library may allow your software to be cross-platform or easier to port to another platform. I'd say stick with the standard library, it'll be much easier and keep everything OO.

Ancient Dragon commented: agree. +25
ov3rcl0ck 25 Junior Poster

You can use the PIL(python image library) to convert an image to a string and store the string in your database.

ov3rcl0ck 25 Junior Poster

Buddy you are not using enough functions, if you need everything in one function(sometimes teachers require this) you can declare functions within a function but it gets pretty messy.

ov3rcl0ck 25 Junior Poster

2.6 has many bugs so i prefer 2.5

2.6 has been out for a while now, its pretty safe to use.

ov3rcl0ck 25 Junior Poster
import threading
 
class THREAD(threading.Thread):
	def __init__(self,ARG1,ARG2):
		threading.Thread.__init__(self)
		#If you change the arugments of __init__ modify the bellow also
		self.arg1=ARG1
		self.arg2=ARG2
	def run(self):
		print "RUN"
		#THIS IS WERE YOUR CODE GOES!
ARG1,ARG2=1,2

t=THREAD(ARG1,ARG2)
t.start()
t.join()

Forgot a line. But you do realize this is an example and i posted it so you can adjust it to your needs, if you don't understand it you're not ready for threading, so this script probably won't work, and if it does its not gonna do anything.If you don't understand it you're not ready for threading.

Dixtosa commented: thx +0