[Python-Dev] Semantics of __int__(), __index__()
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...
More information about the Python-Dev