The Python Oracle

Why doesn't Python have a sign function?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Isolated

--

Chapters
00:00 Question
02:36 Accepted answer (Score 312)
04:45 Answer 2 (Score 73)
09:27 Answer 3 (Score 59)
09:45 Answer 4 (Score 45)
10:28 Thank you

--

Full question
https://stackoverflow.com/questions/1986...

Question links:
[math]: http://docs.python.org/library/math.html...

Accepted answer links:
[patch]: http://bugs.python.org/msg58786
[math]: http://docs.python.org/library/math.html...
[what it should return in all the edge cases]: http://bugs.python.org/msg59137
[used to delegate to the end user the desired behavior for edge cases]: http://bugs.python.org/msg59154
[sometimes might require the call to ]: http://bugs.python.org/msg59152

Answer 4 links:
[removed]: https://docs.python.org/3.0/whatsnew/3.0...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #languagedesign

#avk47