Rich Comparisons Gotcha
Steven D'Aprano
steven at REMOVE.THIS.cybersource.com.au
Mon Dec 8 21:41:47 EST 2008
On Mon, 08 Dec 2008 14:24:59 +0000, Rasmus Fogh wrote:
> For my personal problem I could indeed wrap all objects in a wrapper
> with whatever 'correct' behaviour I want (thanks, TJR). It does seem a
> bit much, though, just to get code like this to work as intended:
> alist.append(x)
> print ('x is present: ', x in alist)
>
> So, I would much prefer a language change. I am not competent to even
> propose one properly, but I'll try.
You think changing the language is easier than applying a wrapper to your
own data??? Oh my, that's too funny for words.
--
Steven
More information about the Python-list
mailing list