This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients mark.dickinson, serhiy.storchaka
Date 2016-05-11.08:59:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:35serhiy.storchakasetrecipients: + serhiy.storchaka, mark.dickinson
2016-05-11 08:59:35serhiy.storchakasetmessageid: <>
2016-05-11 08:59:35serhiy.storchakalinkissue26983 messages
2016-05-11 08:59:35serhiy.storchakacreate