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, georg.brandl, mark.dickinson, rhettinger, valhallasw
Date 2012-03-14.09:23:29
SpamBayes Score 8.8254964e-08
Marked as misclassified No
Message-id <1331717010.79.0.822069664054.issue829370@psf.upfronthosting.co.za>
In-reply-to
Content
Mark, https://en.wikipedia.org/wiki/Signum_function or elementary math books tell us that this function is called signum, sign or sgn.
A library should adopt this standard for the same reason we don't want a ComputeTheSine or calcsin, which would be very confusing.

As we learn from repeated discussions people want to use this signum function, no matter we can imagine this or not and no matter whether that functionality is hidden somewhere else.

Since we are talking about not more than 5 lines of code, I don't see any reason not to have it. If there are some please let us know.
History
Date User Action Args
2012-03-14 09:23:30fkbreitlsetrecipients: + fkbreitl, georg.brandl, rhettinger, mark.dickinson, gekonntde, valhallasw
2012-03-14 09:23:30fkbreitlsetmessageid: <1331717010.79.0.822069664054.issue829370@psf.upfronthosting.co.za>
2012-03-14 09:23:30fkbreitllinkissue829370 messages
2012-03-14 09:23:29fkbreitlcreate