def __init__ question in a class definition

Jeffrey Borkent jeffrey.borkent at adelaide.edu.au
Sun Feb 6 23:23:08 EST 2005


Hi There,

I have an open source program which i am trying to add to.

class classname(member,member)

	def __init__(self,list)
		self.__list = list
		self.refresh = 360

my question is what is the __ (double underscore) represent, if
anything, in this bliock of assignmeents? I wish to add some more names
but do not know if i need the __ or not?

IE: is there any special significance to the __ in this case.

Cheers






-- 
Jeffrey Borkent
Systems Specialist
Information Technology Services
University of Adelaide
Level 7, 10 Pultney Street
Adelaide. 5005
Ph: 8303 3000
jeffrey.borkent at adelaide.edu.au


---------------------------------
CRICOS Provider Number 00123M
----------------------------------------------------------- 
This email message is intended only for the addressee(s) 
and contains information that may be confidential and/or 
copyright.  If you are not the intended recipient please 
notify the sender by reply email and immediately delete 
this email. Use, disclosure or reproduction of this email 
by anyone other than the intended recipient(s) is strictly 
prohibited. No representation is made that this email or 
any attachments are free of viruses. Virus scanning is 
recommended and is the responsibility of the recipient.




More information about the Python-list mailing list