anomaly
Mark Lawrence
breamoreboy at yahoo.co.uk
Mon May 11 06:40:45 EDT 2015
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
More information about the Python-list
mailing list