[Python-Dev] Semantics of __int__(), __index__()

Mark Dickinson dickinsm at gmail.com
Wed Apr 3 14:12:06 CEST 2013

On Wed, Apr 3, 2013 at 12:17 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:

> Perhaps we should start emitting a DeprecationWarning for int subclasses
> returned from __int__ and __index__ in 3.4?
+1.  Sounds good to me.

> (I like the idea of an explicit error over implicit conversion to the base
> type, so deprecation of subtypes makes sense as a way forward. We should
> check the other type coercion methods, too.)
Agreed on both points.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130403/d1c287a8/attachment.html>

More information about the Python-Dev mailing list