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

I understand your confusion John.

The fact is that int() serves two functions. If argument is a number, it 
truncates it to an integer. If argument is a string, it parses the string 
representation of integer (not necessary decimal).

For details see https://docs.python.org/3/library/functions.html#int .

----------

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

Reply via email to