[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
accessible. I guess it's an issue on their side.

./python.exe
Python 3.9.0a4+ (heads/master:5b66ec166b, Mar 16 2020, 10:41:43)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> math.degrees(0)
0.0

--
nosy: +xtreak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 with which Python 
version it operates

--
messages: 364285
nosy: Ion SKALAMERA
priority: normal
severity: normal
status: open
title: Math library Bug Return None for "degrees(0)"
type: behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com