Victor Stinner 1384e901b0 Add VerNum.__index__() for Python 3 support
On Python 3, some functions like range() don't try to call the __int__()
method to cast an object to integer, but try instead the __index__()
method.

Add an __index__() method to mimick correctly the int type on Python 3.

Change-Id: I8df116d80e201778714a59367600eaef644266ed
2015-07-28 12:56:52 +02:00
..
2009-06-30 22:50:18 +02:00
2011-10-02 20:13:10 +08:00
2014-04-09 17:32:52 +02:00
2014-04-09 17:32:52 +02:00
2014-04-09 17:32:52 +02:00
2014-04-09 17:32:52 +02:00
2014-04-09 17:32:52 +02:00
2014-02-26 15:04:54 -05:00