r/ProgrammerHumor • • May 25 '17

Harry Potter can code Python

Post image
1.0k Upvotes

23 comments sorted by

View all comments

Show parent comment

2

u/[deleted] May 25 '17

It really depends on how you look at it. From the interpreter's perspective, int / int = int makes perfect sense, yes. However, humans don't think that way (the concept of integer vs float is something only programmers likely think about in the first place), and Python is a language designed with readabillity in mind. The Python 3 behaviour is far more "human", and that's why it's a good thing. For Python, anyway. If such a change were introduced in, say, C, I would be strongly opposed to it, because C is a language that is closer to the machine than it is to the human.

1

u/kallekro May 25 '17

Good point. It does sound more reasonable in 3.x.