Merlijn van Deen <valhall...@gmail.com> added the comment: numpy.sign does this: http://docs.scipy.org/doc/numpy/reference/generated/numpy.sign.html
---------- nosy: +valhallasw _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue829370> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com