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