Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: object.enable() anti-pattern Date: Fri, 10 May 2013 11:43:42 +1200 Lines: 13 Message-ID: References: <518a123c$0$11094$c3e8da3@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net nD5CnFpyny2PaXptIYAReQSYQEUZnklLDG/dH3Wv15S4vAbsJw Cancel-Lock: sha1:Kf3OpeI7wagaPvOBSiMjaQfbeOA= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: Xref: csiph.com comp.lang.python:45065 Wayne Werner wrote: > You don't ever want a class that has functions that need to be called in > a certain order to *not* crash. That seems like an overly broad statement. What do you think the following should do? f = open("myfile.dat") f.close() data = f.read() -- Greg