Re: UnboundLocalError on global variable

2007-09-09 Thread GuillaumeC
> def processLogEntry(entry): # ADD THIS TO YOUR CODE global cmterID_ > >revision = int(entry.getRevision()) >commiter = str(entry.getAuthor()) >datetime = getTimeStamp(entry.getDate()) >message = str(entry.getMessage()) > >Commiter_[0] = cmterID_ //HERE's THE PROBLEM The r

Re: UnboundLocalError on global variable

2007-09-09 Thread GuillaumeC
> def processLogEntry(entry): # ADD THIS TO YOUR CODE global cmterID_ > >revision = int(entry.getRevision()) >commiter = str(entry.getAuthor()) >datetime = getTimeStamp(entry.getDate()) >message = str(entry.getMessage()) > >Commiter_[0] = cmterID_ //HERE's THE PROBLEM The r

UnboundLocalError on global variable

2007-09-09 Thread Konstantinos Pachopoulos
Hi, i have a problem, the source of which is probably the fact, that i have not understood how to declare global variables - I use the Jython compiler, but i think this is a Python issue... First of all, i don not use any classes in this module. The problem is, that i declare and instantiate som