Class == factory function considered harmful? (Re: Thoughts about Python)

Paul Prescod paul at
Thu Feb 26 03:32:48 CET 2004

Greg Ewing (using wrote:

> Now, if you change the implementation so that Foo is
> no longer a class, code which subclasses Foo will break --
> there's no avoiding that. But code which only instantiates,
> using foo(), will keep working.

Okay, but is this ever a serious problem? Is changing classes into 
functions and vice versa actually a common enough problem to worry about?

  Paul Prescod

More information about the Python-list mailing list