__metaclass__ and __author__ are already decorators

Paul Morrow pm_mon at yahoo.com
Sat Aug 21 17:12:37 CEST 2004


Erratum:

> 
>     def synchronized(decoratedFunc, trueOrFalse):
>         """ This describes the 'synchronized' decorator. """
>         __decorator__ = True
>         __author__ = 'Martin Curry'
>         __version__ = '0.5'
>         # perform the synchronized operation on decoratedClass
> 
> 

should have been

     def synchronized(decoratedFunc, trueOrFalse):
         """ This describes the 'synchronized' decorator. """
         __decorator__ = True
         __author__ = 'Martin Curry'
         __version__ = '0.5'
         # perform the synchronized operation on decoratedFunc




More information about the Python-list mailing list