Lichen

tests/name_attribute.py

336:8c75cdf1a764
2016-12-06 Paul Boddie Introduced stream classes employing C-level FILE pointers, changing the sys stdin, stdout and stderr objects to be instances of these stream classes. Added fread and fwrite support to the native functions. Added support for raising EOFError.
     1 import operator     2      3 class C:     4     pass     5      6 c = C()     7 print c.__name__                        # __main__.C     8 print C.__name__                        # __main__.C     9     10 # If it were defined, operator.__name__ would be __builtins__.core.module.    11     12 print operator.__mname__    13     14 # If it were defined, operator.add.__name__ would be __builtins__.core.function.    15     16 print operator.add.__fname__