[PyKDE] newbie question

Diez B. Roggisch deets at web.de
Thu Nov 18 11:36:09 GMT 2004


> What is the difference when naming a function as :
>  def myfunction(self) def __myfunction__(self) and def __myfunction(self)

That actually a python question - comp.lang.python is a better forum to ask 
such questions. And as always: google is your friend :)

For an explanation of python naming conventions, read this:

http://docs.python.org/ref/specialnames.html
http://www.linuxgazette.com/issue54/pramode.html


The __foo syntax is described here:

http://www.sourcekeg.co.uk/www.python.org/doc/2.2.3/ref/atom-identifiers.html


Diez




More information about the PyQt mailing list