STINNER Victor <victor.stin...@gmail.com> added the comment:

Serhiy: "PR 3867 looks unpythonic to me. We usually don't check the type of 
arguments. This complicate and slow down a code. Do you have a realistic 
example when the current behavior harms?"

No, I don't have any realistic example. I just noticed the bug and I was 
surprised. In practice, flags=2.0 instead of flags=2 is not totally wrong, it's 
okish to accept 2.0. Let's just forget this corner case. I abandon my change.

----------

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

Reply via email to