Removing Warning Messages .............

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Mon Sep 19 16:08:19 EDT 2005


chand a écrit :
> Hi.,
> 
> In my api.py file 'g_opt_list' is defined globally
> g_opt_list =[[],[],[],[],[],[],[]]
> 
> when I run the py file, I am getting the Following Error
> 
> SyntaxWarning: name 'g_opt_list' is used prior to global declaration
> SyntaxWarning: name 'layers' is used prior to global declaration
 >
> Please let me know how to remove these warnings.

By fixing your code



More information about the Python-list mailing list