A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-August/068177.html below:

[Python-Dev] Dict suppressing exceptions

[Python-Dev] Dict suppressing exceptions [Python-Dev] Dict suppressing exceptions"Martin v. Löwis" martin at v.loewis.de
Fri Aug 11 21:08:51 CEST 2006
Michael Chermside schrieb:
> I don't *strongly* object to this consensus, but if you haven't
> glanced at my original example, take a look - it might convince you.
> The proposed solution will not help with my example.

I ignored your example the first time because it was too complicated
to understand.

Now I looked at it, and think that the recipe is broken. It should
add an __eq__ method which is

  def __eq__(self, other):
      return type(self) is type(other) \
             and self.EnumType is other.EnumType \
             and self.__value==other.__value)

Regards,
Martin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4