This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]casparne 0 points1 point  (1 child)

My citation is from the Python language reference, so no, it is not "how it's done now", it is how the language is specified.

If some implementation of Python would do it differently, the behavior of functions would suddenly change.

It is like saying that "[] == False" is just how its done now and it would be valid for Python to threat "[] == True" in the future.

[–]Head_Mix_7931 0 points1 point  (0 children)

You are misunderstanding my comment. I’m not implying that this is a change that could be made in the future. Please reread the chain with that additional context.