[docs] Bug in `Descriptor HowTo Guide`

Panagiotis Mavrogiorgos pmav99 at gmail.com
Sun Jan 27 22:09:32 CET 2013


The equivalent pure Python implementation uses Python 2 syntax for the 
exceptions

     def __set__(self, obj, value):
         if self.fset is None:
             raise AttributeError, "can't set attribute"
         self.fset(obj, value)

http://docs.python.org/3.3/howto/descriptor.html#properties
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20130127/408b6959/attachment-0001.html>


More information about the docs mailing list