Issue #25548: Showing memory address of class objects in repl

This commit is contained in:
Kushal Das 2016-06-04 16:21:13 -07:00
parent 409482251b
commit 5801ecb440
20 changed files with 106 additions and 92 deletions

View file

@ -4544,9 +4544,9 @@ order (MRO) for bases """
pass
foo = Foo()
self.assertRegex(repr(foo.method), # access via instance
r"<bound method .*Foo\.method of <class '.*Foo'>>")
r"<bound method .*Foo\.method of <class '.*Foo' at 0x.+>>")
self.assertRegex(repr(Foo.method), # access via the class
r"<bound method .*Foo\.method of <class '.*Foo'>>")
r"<bound method .*Foo\.method of <class '.*Foo' at 0x.+>>")
class MyCallable: