Message313522
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. |
|
Date |
User |
Action |
Args |
2018-03-10 11:34:44 | ncoghlan | set | recipients:
+ ncoghlan, mark.dickinson, docs@python, Eric Appelt |
2018-03-10 11:34:44 | ncoghlan | set | messageid: <1520681684.27.0.467229070634.issue33039@psf.upfronthosting.co.za> |
2018-03-10 11:34:44 | ncoghlan | link | issue33039 messages |
2018-03-10 11:34:43 | ncoghlan | create | |
|