How to check something is in a list with rich-comparison objects?
Terry Reedy
tjreedy at udel.edu
Wed Sep 16 20:13:40 EDT 2009
Jason wrote:
> I will raise this with pysvn, if I can ever find their issue reporting
> system.
>
> In the meantime, I suppose I can only do this by traversing the list
> with a loop and catching exceptions. Ugly, but seems to be the only
> way.
>
> On Sep 16, 2:39 am, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
> wrote:
>> Looks like a bug in pysvn. Some class (whatever
>> pysvn.wc_notify_action.status_completed is) is not well written. When
>> compared against something unknown, it should return NotImplemented
>> instead of raising AttributeError.
More information about the Python-list
mailing list