[ python-Feature Requests-829370 ] math.signum(int)
SourceForge.net
noreply at sourceforge.net
Fri Nov 28 12:56:07 EST 2003
Feature Requests item #829370, was opened at 2003-10-23 21:44
Message generated for change (Comment added) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=829370&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Konrad Voelkel (gekonntde)
Assigned to: Nobody/Anonymous (nobody)
Summary: math.signum(int)
Initial Comment:
python needs a signum function,
def signum(self, int):
if(int < 0): return -1;
elif(int > 0): return 1;
else: return int;
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2003-11-28 12:56
Message:
Logged In: YES
user_id=80475
With the use cases being infrequent and the pure python
version being so easy, I think we ought to pass on this one.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=829370&group_id=5470
More information about the Python-bugs-list
mailing list