Warning when doubly linked list is defined gloablly

Diez B. Roggisch deets at web.de
Wed Aug 24 13:16:35 CEST 2005

chand wrote:
> 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

This is obviously  wrong and not the code you wrote, global being
written horribly wrong - which should teach you an important lesson:
post actual code that exposes the problem, not something you think that
is working. Then we might be able to help you.


More information about the Python-list mailing list