1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/name_attribute.py Tue Dec 06 15:12:04 2016 +0100
1.3 @@ -0,0 +1,16 @@
1.4 +import operator
1.5 +
1.6 +class C:
1.7 + pass
1.8 +
1.9 +c = C()
1.10 +print c.__name__ # __main__.C
1.11 +print C.__name__ # __main__.C
1.12 +
1.13 +# If it were defined, operator.__name__ would be __builtins__.core.module.
1.14 +
1.15 +print operator.__mname__
1.16 +
1.17 +# If it were defined, operator.add.__name__ would be __builtins__.core.function.
1.18 +
1.19 +print operator.add.__fname__