This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, calvin, georg.brandl, rhettinger
Date 2008-03-28.13:05:26
SpamBayes Score 0.14242126
Marked as misclassified No
Message-id <1206709528.41.0.60602428415.issue2502@psf.upfronthosting.co.za>
In-reply-to
Content
Raymond, is this kind of recipes worth adding to the 'collections' module?

Maybe with the following form:

def enum(*valuenames):
     return namedtuple('Enum', valuenames)(*range(len(valuenames)))
History
Date User Action Args
2008-03-28 13:05:29amaury.forgeotdarcsetspambayes_score: 0.142421 -> 0.14242126
recipients: + amaury.forgeotdarc, georg.brandl, rhettinger, calvin
2008-03-28 13:05:28amaury.forgeotdarcsetspambayes_score: 0.142421 -> 0.142421
messageid: <1206709528.41.0.60602428415.issue2502@psf.upfronthosting.co.za>
2008-03-28 13:05:27amaury.forgeotdarclinkissue2502 messages
2008-03-28 13:05:27amaury.forgeotdarccreate