On Sep 16, 2010, at 11:40 AM, Jacek Kałucki wrote:

> And attribute persists until object is destroyed, while returned value 
> doesn't.


        You are describing a very lightweight situation: a boolean return value 
vs. a boolean attribute. If you're worrying about the effect of a boolean 
attribute added to an object, then your system is either already broken, or you 
prematurely optimizing.

        But if you really, really need to remove that attribute, it's simple:

self.foo = False
self.scan(...)
if self.foo:
        doWhatever()
del self.foo



-- Ed Leafe




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to