On Sep 16, 2010, at 1:24 PM, Jacek Kałucki wrote:

>>      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
> 
> It's still much more complicated than just return value:
> 
> if self.scan(...):
>       doWhatever()


        Perhaps for your use case, but what exactly does the return value 
represent? Does it mean that all the rows were scanned? Does it mean that the 
function returned True for all rows? Does it mean that it returned True for at 
least one row?

        What about if someone wants to return a tuple of all function values? 
Or the sum of all the calls? Or the count? Or the...

        Frameworks don't solve individual use cases; they provide general 
patterns to allow developers to solve their particular needs. The scan() method 
is designed to apply a function to all rows in the dataset. If you have a need 
that is more complex than that, I've already suggested using a bizIterator to 
handle things.



-- 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