lp:~barry/flufl.enum/lp1162375

Created by Barry Warsaw and last modified
Get this branch:
bzr branch lp:~barry/flufl.enum/lp1162375
Only Barry Warsaw can upload to this branch. If you are Barry Warsaw please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Barry Warsaw
Project:
flufl.enum
Status:
Merged

Recent revisions

77. By Barry Warsaw

fixes

76. By Barry Warsaw

- Deprecate make().
- Remove make_int() since it was never released.
- Deprecate 1-arg Enum() calling.
- Co-opt Enum() and IntEnum() as the functional API for creating enums.

75. By Barry Warsaw

Trunk merge

74. By Barry Warsaw

* Remove the old example file.
* Ignore .tox directory
* Update NEWS.

73. By Barry Warsaw

Prepare for the 3.4 release (and PEP 345).

 * Deprecate ``EnumValue.__int__()``; use ``IntEnumValue`` (via ``IntEnum``)
   instead.
 * Add ``IntEnum`` class which returns int-subclass enum values. (LP: #1132976)
   - Add ``__index__()`` method to support slicing. (LP: #1132972)
   - Add non-deprecated ``__int__()`` method.
   - Add `make_int()` convenience function.
 * Add ``.value`` attribute to enum values. (LP: #1132859)
 * For ``__getitem__()`` and ``__call__()``, fall back to using the ``.value``
   attribute if the argument has one. (LP: #1124596)

Also:

 * Add secret ``__value_factory__`` attribute to specify a different class for
   the enum values. This is what ``IntEnum`` uses.
 * bzr ignore __pycache__ directories.
 * Add a simple tox configuration file.
 * Bump copyright years.

72. By Barry Warsaw

A simple tox configuration file.

71. By Barry Warsaw

 * For ``__getitem__()`` and ``__call__()``, try to coerce the argument to an
   int to support "integer-ish" arguments, such as an ``EnumValue``.
   (LP: #1124596)

70. By Barry Warsaw

 * Add ``__index__()`` method to support slicing. (LP: #1132972)

Also, remove an unused import.

69. By Barry Warsaw

 * Previously deprecated APIs ``EnumValue.enumclass``, ``EnumValue.enumname``,
   and ``enum.make_enum()`` are removed. (LP: #1132951)

68. By Barry Warsaw

Fix another documentation bug.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:~barry/flufl.enum/trunk
This branch contains Public information 
Everyone can see this information.

Subscribers