[Dev] Proposing the removal of Item.__iter__( )
Ted Leung
twl at osafoundation.org
Mon Oct 25 22:45:05 PDT 2004
+1
On Oct 25, 2004, at 1:27 PM, Andi Vajda wrote:
>
> Yes, I agree, this would resolve the confusion. We're not emphasizing
> the use of parent/children containers anyway.
>
> +1
>
> Andi..
>
> On Mon, 25 Oct 2004, Morgen Sagen wrote:
>
>> This is an old outstanding issue I would like to resolve:
>>
>> One way to get an item's children was to iterate on the item ("for
>> child in item:"), but now that ItemCollection overrides __iter__( ),
>> that changes the behavior. Iterating on an ItemCollection returns
>> results rather than children.
>>
>> Unless there are any objections, I would like to have Andi remove
>> Item's __iter__( ) method and just have people use iterChildren( )
>> instead.
>>
>> ~morgen
>>
>> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>>
>> Open Source Applications Foundation "Dev" mailing list
>> http://lists.osafoundation.org/mailman/listinfo/dev
>>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> Open Source Applications Foundation "Dev" mailing list
> http://lists.osafoundation.org/mailman/listinfo/dev
>
----
Ted Leung Open Source Applications Foundation (OSAF)
PGP Fingerprint: 1003 7870 251F FA71 A59A CEE3 BEBA 2B87 F5FC 4B42
More information about the Dev
mailing list