Wenzel Jakob e6fd2cd5ab enum_: fix implicit conversion on Python 2.7
Enumerations on Python 2.7 were not always implicitly converted to
integers (depending on the target size). This patch adds a __long__
conversion function (only enabled on 2.7) which fixes this issue.

The attached test case fails without this patch.
2017-04-29 16:35:28 +02:00
..
2017-03-10 15:42:42 +01:00
2017-01-31 17:28:29 +01:00
2017-01-31 17:05:44 +01:00
2017-03-10 15:42:42 +01:00
2016-12-16 15:00:46 +01:00
2017-04-08 23:25:13 -04:00
2017-04-08 23:25:13 -04:00
2016-12-16 15:00:46 +01:00
2016-12-16 15:00:46 +01:00