On 11/05/2015 11:15, Antoon Pardon wrote:
Op 10-05-15 om 19:28 schreef Gary Herron:
Common Python thought:: "We're all adults here." If you want to
override a builtin within your own namespace, who are we to stop you?
Besides, it's still available as __builtins__.int (unless you've also
overridden that).
This is a common python myth. That is selectively used when convenient and
ignored when that is convenient.
Try overriding None, True or False in python3 and see what happens.
According to
https://docs.python.org/3/reference/lexical_analysis.html#keywords None,
True and False are all keywords in Python 3, int isn't as I believe has
already been pointed out.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list