int() and math.trunc don't accept objects that only define __index__

Show replies by date

1203
Age (days ago)
1228
Last active (days ago)

python-dev@python.org

7 comments
4 participants

Add to favorites Remove from favorites

tags (0)
participants (4)
  • Nick Coghlan
  • Rémi Lapeyre
  • Serhiy Storchaka
  • Steven D'Aprano