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

Show replies by date

927
days inactive
952
days old

python-dev@python.org

7 comments
participants

Add to favorites Remove from favorites

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