[Python-ideas] class-only methods without using metaclasses

Nick Coghlan ncoghlan at gmail.com
Thu Mar 7 09:21:47 CET 2013


On Thu, Mar 7, 2013 at 5:10 PM, Eric Snow <ericsnowcurrently at gmail.com> wrote:
> Thoughts?

It's too much additional complexity to resolve a largely theoretical
problem. Since class methods can be shadowed in instances, the fact
they're accessible through the instances really doesn't hurt anything,
and the distinction between a class method and a class only method
would be too subtle to easily explain to anyone not already steeped in
the details of descriptors and metaclasses.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list