mike stern <[email protected]> added the comment:
i am calm but sometimes I am wondering if the philosophy behind python is really like they claimed to make it very simple. Well I see a lot of confusions sometimes , and this is one ________________________________ From: [email protected] <[email protected]> on behalf of Tim Peters <[email protected]> Sent: Monday, June 22, 2020 5:59 PM To: [email protected] <[email protected]> Subject: [issue41071] from an int to a float , why Tim Peters <[email protected]> added the comment: Mike, read that exchange again. You originally wrote "print(2 / 2) gives 2.0 instead of 2" but you didn't _mean_ that. You meant to say it "gives 1.0 instead of 1", or you meant something other than "2 / 2"). In Python 3, >>> print(2 / 2) 1.0 Which is what Serhiy said it does. For the rest, read the PEP again after you calm down. In particular, "Classic division will remain the default in the Python 2.x series; true division will be standard in Python 3.0." Also all true. ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue41071> _______________________________________ ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue41071> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
