warning when doubly liked list is defined globally

2005-09-14 Thread chand
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

Re: warning when doubly liked list is defined globally

2005-09-05 Thread Daniel Dittmar
chand wrote: > 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 g_del_opt_list =[[],[],[],[],[],[],[]] #g_opt_lis

Re: warning when doubly liked list is defined globally

2005-09-05 Thread Fredrik Lundh
"chand" <[EMAIL PROTECTED]> wrote: > 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 > > Please let me know how to remove th

warning when doubly liked list is defined globally

2005-09-05 Thread chand
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 Please let me know how to remove this error Here is the code which gives the