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. Diez -- http://mail.python.org/mailman/listinfo/python-list