[Tutor] Setting a global variable on class initialisation

Max Russell max.russell at barco.com
Thu Apr 27 16:47:34 CEST 2006


Hello-
 
I know that overall Global variables are  bad idea, however, I have a
situation where on on initialisation of a class, I need to read in two files
and then populate two lists.
The lists need to would appear to need to be outwith the class I am working
with and global.
 
Can anyone give good examples of this?
 
thanks
 
Max Russell
Senior Test Engineer<?XML:NAMESPACE PREFIX = O /> 

Barco
Bonnington Bond, 2 Anderson Place, Edinburgh EH6 5NP, UK
Tel + 44 (0) 131 472 5731 Fax + 44 (0) 131 472 4799
www.barco.com
max.russell at barco.com <mailto:max.russell at barco.com> 

Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you. 

 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060427/872807e3/attachment.html 


More information about the Tutor mailing list