[issue39972] Math library Bug Return None for "degrees(0)"

2020-03-16 Thread SilentGhost
Change by SilentGhost : -- nosy: +Ion SKALAMERA resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue39972] Math library Bug Return None for "degrees(0)"

2020-03-16 Thread Hamid Nazari
Hamid Nazari added the comment: You seem to be calling `turtle.degrees()`, not `math.degrees()`. Try this in your Repl.it: (which does not use cpython, rather it uses Skulpt) import math import turtle print(turtle.degrees(0)) print(math.degrees(0)) -- nosy: +hamidnazari

[issue39972] Math library Bug Return None for "degrees(0)"

2020-03-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: math.degrees returns 0.0 and even has a test for this at https://github.com/python/cpython/blob/5b66ec166b81c8a77286da2c0d17be3579c3069a/Lib/test/test_math.py#L476 . I am not sure of the environment under which repl.it runs as sys is not

[issue39972] Math library Bug Return None for "degrees(0)"

2020-03-15 Thread Ion SKALAMERA
Change by Ion SKALAMERA : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39972] Math library Bug Return None for "degrees(0)"

2020-03-15 Thread Ion SKALAMERA
Change by Ion SKALAMERA : -- nosy: +mark.dickinson, rhettinger, stutzbach -Ion SKALAMERA ___ Python tracker ___ ___

[issue39972] Math library Bug Return None for "degrees(0)"

2020-03-15 Thread Ion SKALAMERA
New submission from Ion SKALAMERA : I tried programming a recursive fractal with Python Turtle on repl.it: https://repl.it/@IonSKALAMERA/simplefractalrecursive and when my code came to calculating the angle degrees(0) returned NoneType which is a serious bug in the math library. I dont know