29 ms·
Interesting. It looks like if you want to use enum in 2.7 you have to use a package called flufl[1]. [1] http://bazaar.launchpad.net/~barry/flufl.enum/trunk/vi
by Toshio 13y ago
Interesting. It looks like if you want to use enum in 2.7 you have to use a package called flufl[1].
[1] http://bazaar.launchpad.net/~barry/flufl.enum/trunk/view/head:/flufl/enum/_enum.py#L170 http://bazaar.launchpad.net/~barry/flufl.enum/trunk/view/hea...
- eliben 13y agoflufl.enum was the initial candidate for PEP 435, but the current approach changed and uses implementation techniques not available in Python 2.7 We may create a almost-compliant back-port for 2.7 as an external library though
- tshepang 13y agoYou sure it's not better spending the energy elsewhere? Python 3 needs more exclusive features to encourage people to migrate from Python 2.
- chrismorgan 13y ago"Almost compliant" would mean compliant except for guaranteeing the correct order of iteration, would it not?