Terry Hancock wrote:

> What Lundh is modeling this on is not standard OOP thinking,
> but rather the standard way of opening files in Python.
>
> Or you could say he's using a "factory function".

"open" is a factory function, and it picks the right class based
on the file you're opening.

anyone arguing that this is bad OOP is deluded.

</F>



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to