<?xml version="1.0" encoding="UTF-8" ?>
<rdf:RDF xmlns="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Project><name>enum</name>
<shortdesc>Robust enumerated type support in Python</shortdesc>
<description>This package provides a module for robust enumerations in Python.

An enumeration object is created with a sequence of string arguments
to the Enum() constructor::

    &gt;&gt;&gt; from enum import Enum
    &gt;&gt;&gt; Colours = Enum('red', 'blue', 'green')
    &gt;&gt;&gt; Weekdays = Enum('mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun')

The return value is an immutable sequence object with a value for each
of the string arguments. Each value is also available as an attribute
named from the corresponding string argument::

    &gt;&gt;&gt; pizza_night = Weekdays[4]
    &gt;&gt;&gt; shirt_colour = Colours.green

The values are constants that can be compared only with values from
the same enumeration; comparison with other values will invoke
Python's fallback comparisons::

    &gt;&gt;&gt; pizza_night == Weekdays.fri
    True
    &gt;&gt;&gt; shirt_colour &gt; Colours.red
    True
    &gt;&gt;&gt; shirt_colour == "green"
    False

Each value from an enumeration exports its sequence index
as an integer, and can be coerced to a simple string matching the
original arguments used to create the enumeration::

    &gt;&gt;&gt; str(pizza_night)
    'fri'
    &gt;&gt;&gt; shirt_colour.index
    2</description>
<homepage rdf:resource="http://cheeseshop.python.org/pypi/enum/" />
<maintainer><foaf:Person><foaf:name>Ben Finney</foaf:name>
<foaf:mbox_sha1sum>ad04b43c71418375aaee149c58fe541a25da784f</foaf:mbox_sha1sum></foaf:Person></maintainer>
<release><Version><revision>0.4.3</revision></Version></release>
</Project></rdf:RDF>