Carlos Pascual - 2015-09-29

Note: regarding to bck-compat:

  • regarding the issue 1, the __str__() method should also be reimplemented to return the .name. e.g.: str(Cars.Citroen) --> 'Citroen' (instead of str(Cars.Citroen) -->'Cars.Citroen')
  • the issue 2.1 could be addressed by making taurus.core.util.Enum inherit from enum.intEnum instead of enum.Enum

In general, I think that all the bck-compat hacks to be implemented in taurus.core.util.Enum should be marked as deprecated, so that 3rd party code has some time to adapt, and eventually just remove the compatibility layer.