def index(self):
Gert Cuykens
gert.cuykens at gmail.com
Mon Dec 18 17:24:02 EST 2006
> FWIW, the first version raises an exception (unless of course the name
> 'index' is already bound in the enclosing scope). And the second won't
> probably work as expected with CherryPy.
<code>
class HelloWorld:
def index(self):
return "Hello world!"
index.exposed = True #DOOOOOOH!
</code>
i skipped reading the chapter about 2.1.8 Indentation. Guess how many
hours it took to realize 2 spaces isn't the same as 1 space lol
Any other chapters i should read horizontal instead of vertical for a
php5 htm jso wane be snake user :)
More information about the Python-list
mailing list