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 mark.dickinson
Recipients mark.dickinson, serhiy.storchaka
Date 2012-10-20.11:56:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350734177.95.0.540926194354.issue16290@psf.upfronthosting.co.za>
In-reply-to
Content
> Is there a new feature, not a bugfix?

There's an ongoing argument about that on the python-dev thread. :-)  But yes, I think this needs a doc update---even if it's considered a bugfix, the current docs could be clarified.

http://docs.python.org/dev/reference/datamodel.html?highlight=__complex__#object.__complex__

says

"Should return a value of the appropriate type."  My interpretation of that is that __int__ should return an int, __float__ a float, __complex__ a complex number;  with this change, that interpretation no longer works.

I'll update the patch (and add a Misc/NEWS entry, too).

Thanks!
History
Date User Action Args
2012-10-20 11:56:17mark.dickinsonsetrecipients: + mark.dickinson, serhiy.storchaka
2012-10-20 11:56:17mark.dickinsonsetmessageid: <1350734177.95.0.540926194354.issue16290@psf.upfronthosting.co.za>
2012-10-20 11:56:17mark.dickinsonlinkissue16290 messages
2012-10-20 11:56:17mark.dickinsoncreate