BPO | [33039](https://bugs.python.org/issue33039) --- | :--- Nosy | @mdickinson, @ncoghlan, @serhiy-storchaka, @appeltel, @csabella, @remilapeyre, @tirkarthi PRs | python/cpython#13106 Superseder | bpo-20092: type() constructor should bind __int__ to __index__ when __index__ is defined and __int__ is not *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.* Show more details GitHub fields: ```python assignee = None closed_at = created_at = labels = ['3.8', 'type-feature', '3.7', 'docs'] title = "int() and math.trunc don't accept objects that only define __index__" updated_at = user = 'https://github.com/ncoghlan' ``` bugs.python.org fields: ```python activity = actor = 'serhiy.storchaka' assignee = 'docs@python' closed = True closed_date = closer = 'serhiy.storchaka' components = ['Documentation'] creation = creator = 'ncoghlan' dependencies = [] files = [] hgrepos = [] issue_num = 33039 keywords = ['patch'] message_count = 10.0 messages = ['313515', '313522', '332819', '333546', '336044', '336201', '336234', '340453', '341505', '341508'] nosy_count = 8.0 nosy_names = ['mark.dickinson', 'ncoghlan', 'docs@python', 'serhiy.storchaka', 'Eric Appelt', 'cheryl.sabella', 'remi.lapeyre', 'xtreak'] pr_nums = ['13106'] priority = 'normal' resolution = 'duplicate' stage = 'resolved' status = 'closed' superseder = '20092' type = 'enhancement' url = 'https://bugs.python.org/issue33039' versions = ['Python 3.6', 'Python 3.7', 'Python 3.8'] ```