Da dove viene la variabile __spec__
?Python3: Perché funziona __spec__?
$ brew install python3
$ python3
Python 3.4.2 (default, Jan 5 2015, 11:57:21)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
# Under Python 2.7.x this gives a NameError
>>> None is __spec__
True
http://bugs.python.org/issue19697 ha più informazioni implementazione nel caso in cui qualcuno è interessato – pzrq