[Python-Dev] Confirming status of new modules in 3.4

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Mar 16 00:00:30 CET 2014


Nick Coghlan wrote:
> On 16 March 2014 01:40, Guido van Rossum <guido at python.org> wrote:
> 
>>This downside of using subclassing as an API should be well known by now and
>>widely warned against.
> 
> I've actually pondered the idea of suggesting we explicitly recommend
> the "procedural facade around an object oriented implementation" API
> design model in PEP 8,

I don't think I would call this a "procedural" API. To my
mind, any API that exposes objects with methods is an
object-oriented API, whether it encourages subclassing those
objects or not.

-- 
Greg


More information about the Python-Dev mailing list