[Python-Dev] Semantics of int(), index() (original) (raw)
Mark Dickinson dickinsm at gmail.com
Wed Apr 3 14:12:06 CEST 2013
- Previous message: [Python-Dev] Semantics of __int__(), __index__()
- Next message: [Python-Dev] Semantics of __int__(), __index__()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20130403/d1c287a8/attachment.html>
- Previous message: [Python-Dev] Semantics of __int__(), __index__()
- Next message: [Python-Dev] Semantics of __int__(), __index__()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]