object.enable() anti-pattern
Roy Smith
roy at panix.com
Thu May 9 23:09:55 EDT 2013
In article <518c5bbc$0$29997$c3e8da3$5496439d at news.astraweb.com>,
Steven D'Aprano <steve+comp.lang.python at pearwood.info> wrote:
> I must admit I am astonished at how controversial the opinion "if your
> object is useless until you call 'start', you should automatically call
> 'start' when the object is created" has turned out to be.
I'm sorry. I thought you were here for an argument.
I think where things went pear shaped is when you made the statement:
>> There is no sensible use-case for creating a file OBJECT unless it
>> initially wraps an open file pointer.
That's a pretty absolute point of view. Life is rarely so absolute.
More information about the Python-list
mailing list