Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

The difference is because in the first case all floats are the same float 
object 0.0, but in the second case they are different objects. For more 
reaĺistic comparison use different floats (for example random()).

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36694>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to