[issue16832] Expose cache validity checking support in ABCMeta

Phillip J. Eby report at bugs.python.org
Sat May 25 21:16:27 CEST 2013


Phillip J. Eby added the comment:

All that being said, I took out some time to get actual numbers, and
found my original guesstimate of overhead was incorrect; it's only 3
times slower, not "orders of magnitude".  ;-)

And even on a relatively old machine, that 3 times slower amounts to
an extra tenth of a microsecond, at least in a hot loop with timeit.
So I'll stop being a pain about this now, even though I still think
getters are a stinky Java code smell and don't belong in Python
anyways.  ;-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16832>
_______________________________________


More information about the Python-bugs-list mailing list