Re: How to check something is in a list with rich-comparison objects?

2009-09-16 Thread Jason
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-...@yahoo.com.ar wrote: Looks

Re: How to check something is in a list with rich-comparison objects?

2009-09-16 Thread Gabriel Genellina
En Wed, 16 Sep 2009 03:36:32 -0300, Jason jason.hee...@gmail.com escribió: On Sep 16, 2:39 am, Gabriel Genellina gagsl-...@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

Re: How to check something is in a list with rich-comparison objects?

2009-09-16 Thread Steven D'Aprano
On Wed, 16 Sep 2009 03:57:30 -0300, Gabriel Genellina wrote: En Wed, 16 Sep 2009 03:36:32 -0300, Jason jason.hee...@gmail.com escribió: On Sep 16, 2:39 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: Looks like a bug in pysvn. Some class (whatever

Re: How to check something is in a list with rich-comparison objects?

2009-09-16 Thread Terry Reedy
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-...@yahoo.com.ar

Re: How to check something is in a list with rich-comparison objects?

2009-09-15 Thread Gabriel Genellina
En Tue, 15 Sep 2009 11:18:33 -0300, Jason jason.hee...@gmail.com escribió: Comparing a string to the enumerations in pysvn gives me an attribute error, because they've overloaded the rich compare methods: import pysvn string in [pysvn.wc_notify_action.status_completed, string] Traceback