[Zope-dev] Python3 and attribute annotations.
Dieter Maurer
dieter at handshake.de
Wed Mar 11 15:05:31 EDT 2009
Dan Korostelev wrote at 2009-3-10 00:20 +0300:
> ...
>But there's a problem: those annotations will be stored in object's
>__annotations__ attribute, which is also used by zope.annotation's
>AttributeAnnotation implementation, so they will conflict.
And the problem is far wider:
The Python language description reserves all attribute names
of the form "__XXXX__" -- and Zope ignores this reservation widespread.
Future conflicts are not unlikely.
--
Dieter
More information about the Zope-Dev
mailing list