mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #25548: Showing memory address of class objects in repl
This commit is contained in:
parent
409482251b
commit
5801ecb440
20 changed files with 106 additions and 92 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue