warning when doubly liked list is defined globally

Daniel Dittmar daniel.dittmar at sap.corp
Mon Sep 5 12:05:06 CEST 2005

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_list = []

It seems that your variable names got mixed up.


More information about the Python-list mailing list