On 9/23/10 11:22 AM, Ed Leafe wrote:
> On Sep 23, 2010, at 2:02 PM, Jacek Kałucki wrote:
>
>> Why iterator returns something useless while it can return something
>> usefull?
>
>
>       I've already explained that. If it returned the content of that row, it 
> would suggest that you could modify those values and have them reflected back 
> in the bizobj. Operating under the principle of least surprises, that would 
> be a much worse solution, as it would potentially involved data loss.

I could see it returning a read-only record object or a dataset, but that would 
add 
overhead for little if any gain. My proposal (if any: I think the current 
behavior is 
fine) would be to have it return None, which would make it clear there's 
nothing 
useful in the return value and result in a trivial reduction in overhead in 
getting 
RowNumber from the bizobj. RowNumber can be gotten if needed by the caller with 
enumerate().

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

Reply via email to