[issue4109] Wrong UnboundLocalError with += operator

2008-10-12 Thread Eric Atienza
New submission from Eric Atienza <[EMAIL PROTECTED]>: the following code : def test(): code='' def sub(n): for i in range(n): code+=str(i) sub(5) sub(10) return code >>> test() Traceback (most recent call last): File "&q

[issue6073] threading.Timer and gtk.main are not compatible

2009-05-20 Thread Eric Atienza
New submission from Eric Atienza : this simple code: " import gtk from threading import Timer from time import sleep def p(): print "p" Timer(1, p).start() #gtk.main() sleep(10) print "done" does print "p" a second after it starts. when I remove the com