3 ms·
OK, someone downvoted this. That's OK, but can you say why you think it's good for the default in Python 2 to not act like Python 2?
by a3n 12y ago
OK, someone downvoted this. That's OK, but can you say why you think it's good for the default in Python 2 to not act like Python 2?
- JelteF 12y agoIt wasn't me, but I can understand that for sharing scripts this should be quite useful. Also, I think the Python 3 division is way more logical (like most things in Python 3) and the old division is only one / more away. (// is integer division) Also in a shared code base where you use division this is almost always necessary, or at least easier.
- meowface 12y agoIt's a generally accepted language wart, just like input() and raw_input(). / for float division, // for integer division.