Decorators: an outsider's perspective

Paul Morrow pm_mon at yahoo.com
Sun Aug 15 05:04:35 CEST 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