1.1 --- a/tests/name_attribute.py Sun Jan 22 01:13:03 2017 +0100
1.2 +++ b/tests/name_attribute.py Sun Jan 22 01:13:31 2017 +0100
1.3 @@ -1,13 +1,17 @@
1.4 import operator
1.5
1.6 class C:
1.7 - pass
1.8 + def f(self): pass
1.9
1.10 c = C()
1.11 print c.__name__ # C
1.12 -print c.__mname__ # __main__
1.13 +print c.__oname__ # __main__
1.14 print C.__name__ # C
1.15 -print C.__mname__ # __main__
1.16 +print C.__oname__ # __main__
1.17 +print c.f.__fname__ # f
1.18 +print c.f.__oname__ # __main__.C
1.19 +print C.f.__fname__ # f
1.20 +print C.f.__oname__ # __main__.C
1.21
1.22 # If it were defined, operator.__name__ would be module.
1.23
1.24 @@ -16,4 +20,4 @@
1.25 # If it were defined, operator.add.__name__ would be function.
1.26
1.27 print operator.add.__fname__ # add
1.28 -print operator.add.__mname__ # operator.binary
1.29 +print operator.add.__oname__ # operator.binary