Message265297
The warning message is copied from __int__. As I understand, the conclusion of the Python-Dev discussion is that __int__, __float__, __complex__, etc should return exact int, float, complex, not subclasses. I have another patch that adds a warning for __complex__, and I am working on patches for other special methods. If my understanding is wrong, we should remove the deprecation warning for __int__. |
|
Date |
User |
Action |
Args |
2016-05-11 08:59:35 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, mark.dickinson |
2016-05-11 08:59:35 | serhiy.storchaka | set | messageid: <1462957175.58.0.691304449898.issue26983@psf.upfronthosting.co.za> |
2016-05-11 08:59:35 | serhiy.storchaka | link | issue26983 messages |
2016-05-11 08:59:35 | serhiy.storchaka | create | |
|