mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
parent
fb4f8257bf
commit
ab078e9ed1
20 changed files with 92 additions and 105 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' at 0x.+>>")
|
||||
r"<bound method .*Foo\.method of <class '.*Foo'>>")
|
||||
self.assertRegex(repr(Foo.method), # access via the class
|
||||
r"<bound method .*Foo\.method of <class '.*Foo' at 0x.+>>")
|
||||
r"<bound method .*Foo\.method of <class '.*Foo'>>")
|
||||
|
||||
|
||||
class MyCallable:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue