def index(self):

Gert Cuykens gert.cuykens at gmail.com
Mon Dec 18 14:40:13 EST 2006


Is there a difference between

<code>
class HelloWorld:
 def index(self):
  index.exposed = True
  return "Hello world!"
</code>

and

<code>
class HelloWorld:
 def index(self):
  self.exposed = True
  return "Hello world!"
</code>



More information about the Python-list mailing list