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/2003-December/041496.html below:

[Python-Dev] feedback on Enum class

[Python-Dev] feedback on Enum class [Python-Dev] feedback on Enum classAahz aahz at pythoncraft.com
Tue Dec 30 14:59:55 EST 2003
On Tue, Dec 30, 2003, Keith Dart wrote:
> 
> I am posting this Enum (named number) class to this list for possible
> feedback. It can be used as a regular integer but when printed
> (stringified) it yeilds its name. The hash also makes named numbers with
> the same integer value into unique dictionary keys. That is the part I
> am not sure about... Comments appreciated. 

This should probably go to comp.lang.python.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Weinberg's Second Law: If builders built buildings the way programmers wrote 
programs, then the first woodpecker that came along would destroy civilization.

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