Use operator.index() instead of n.__index__().
1 file changed