Warning when doubly linked list is defined gloablly

chand chandra.bangalore at gmail.com
Wed Aug 24 07:11:54 EDT 2005


Hi.,

In my api.py file 'g_opt_list' is defined globally
g_opt_list =[[],[],[],[],[],[],[]]

I am using this global list in the fucntion

def function ():
    gloabl 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

--BestRegars.,
--Chandra




More information about the Python-list mailing list