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 fkbreitl
Recipients fkbreitl, gekonntde, mark.dickinson, rhettinger, valhallasw
Date 2012-03-13.20:43:28
SpamBayes Score 2.3313945e-05
Marked as misclassified No
Message-id <1331671409.49.0.510795630203.issue829370@psf.upfronthosting.co.za>
In-reply-to
Content
Mark, the convincing use-cases apear already on this page.

People suggest the usage of numpy or the definition of all kinds of functions to accomplish this trivial task. But the users don't want to worry about this. They just want to use this function and not lose time figuring out how to best implement it in python.

Copysign is not very intuitive e.g. because command completion on math.si_ fails and because it will not be a first result by search engines.

The discussion is another example for the user request. And I have the feeling that with the time spend on it all different variations of signum functions could have been implemented including their documentation - although the implementation of your two line solution should have been satisfying for almost everybody...
History
Date User Action Args
2012-03-13 20:43:29fkbreitlsetrecipients: + fkbreitl, rhettinger, mark.dickinson, gekonntde, valhallasw
2012-03-13 20:43:29fkbreitlsetmessageid: <1331671409.49.0.510795630203.issue829370@psf.upfronthosting.co.za>
2012-03-13 20:43:28fkbreitllinkissue829370 messages
2012-03-13 20:43:28fkbreitlcreate