Re: Warning when doubly linked list is defined gloablly

2005-09-05 Thread Terry Reedy
chand [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Please let me know how to resolve this warning message..!! SyntaxWarning: name 'g_opt_list' is used prior to global declaration Post the entire error traceback. Post the entire error traceback. Post the entire error traceback

Re: Warning when doubly linked list is defined gloablly

2005-09-05 Thread Peter Otten
chand wrote: Sorry for mailing the code which does't even compile !! You probably missed that other hint where Fredrik Lunddh told you to somewhat reduce the script's size. Please find below the code which compiles. Please let me know how to resolve this warning message..!! SyntaxWarning:

Re: Warning when doubly linked list is defined gloablly

2005-08-30 Thread chand
Hi Terry.., Here is the code which gives the error... Let me know exact reason for this Error import os,sys,re,string,math from xml.dom import minidom, Node from Layer import Layer from LMessage import * from Param import * from Message import * from message_mapping import * from

Warning when doubly linked list is defined gloablly

2005-08-24 Thread chand
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

Re: Warning when doubly linked list is defined gloablly

2005-08-24 Thread Diez B. Roggisch
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

Re: Warning when doubly linked list is defined gloablly

2005-08-24 Thread Benjamin Niemann
chand wrote: 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 global? when I run the py file, I am getting the Following Error SyntaxWarning: name

Re: Warning when doubly linked list is defined gloablly

2005-08-24 Thread Terry Reedy
chand [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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