Author ncoghlan
Recipients Eric Appelt, docs@python, mark.dickinson, ncoghlan
Date 2018-03-10.11:34:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1520681684.27.0.467229070634.issue33039@psf.upfronthosting.co.za>
In-reply-to
Content
Marking this as a documentation enhancement request for now, but I think we should also consider changing the type creation behaviour in 3.8 to implicitly add __int__ and __trunc__ definitions when __index__ is defined, but they aren't.

That way, no behaviour will change for classes that explicitly define __int__ or __trunc__, but classes that only define __index__ without defining the other methods will behave more intuitively.
History
Date User Action Args
2018-03-10 11:34:44ncoghlansetrecipients: + ncoghlan, mark.dickinson, docs@python, Eric Appelt
2018-03-10 11:34:44ncoghlansetmessageid: <1520681684.27.0.467229070634.issue33039@psf.upfronthosting.co.za>
2018-03-10 11:34:44ncoghlanlinkissue33039 messages
2018-03-10 11:34:43ncoghlancreate