Decorators: an outsider's perspective

Paul Morrow pm_mon at yahoo.com
Sat Aug 14 23:04:35 EDT 2004


> 
>     class Foo:
>     def setX(self, x):
>         self.x = x
> 

The indentation was messed-up on that example.  It should have been...

      class Foo:
          def setX(self, x):
              self.x = x





More information about the Python-list mailing list