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 antocuni, jcea, mark.dickinson, serhiy.storchaka
Date 2012-10-28.11:46:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351424811.39.0.0286953913133.issue16290@psf.upfronthosting.co.za>
In-reply-to
Content
I've been convinced by the python-dev discussion that Antonio was right: it's complex_new that's in error rather than the cmath functions.  Even so, it would be unsafe to change the behaviour in the maintenance releases.

Attaching a new patch that disallows 'float'-type returns from the __complex__ method.
History
Date User Action Args
2012-10-28 11:46:51mark.dickinsonsetrecipients: + mark.dickinson, jcea, serhiy.storchaka, antocuni
2012-10-28 11:46:51mark.dickinsonsetmessageid: <1351424811.39.0.0286953913133.issue16290@psf.upfronthosting.co.za>
2012-10-28 11:46:51mark.dickinsonlinkissue16290 messages
2012-10-28 11:46:51mark.dickinsoncreate