anomaly

Antoon Pardon antoon.pardon at rece.vub.ac.be
Mon May 11 06:15:58 EDT 2015


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.

-- 
Antoon Pardon




More information about the Python-list mailing list