[docs] Code, test, and doc review for PEP-0435 Enum (issue 17947)

alex.gaynor at gmail.com alex.gaynor at gmail.com
Sat May 11 05:08:28 CEST 2013


http://bugs.python.org/review/17947/diff/8113/Lib/enum.py
File Lib/enum.py (right):

http://bugs.python.org/review/17947/diff/8113/Lib/enum.py#newcode57
Lib/enum.py:57: return self.__class__(self.fget, self.fset, self.fdel,
self.__doc__)
These don't seem to correctly mix the new func in.

http://bugs.python.org/review/17947/diff/8113/Lib/enum.py#newcode223
Lib/enum.py:223: raise AttributeError(name) from None
Is there a reason to use __getattr__ over descriptors?

http://bugs.python.org/review/17947/


More information about the docs mailing list