mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Repair example code in doc string.
Bug fix candiadte.
This commit is contained in:
parent
e995d16f71
commit
425a8ec05e
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ post-condition with that defined in the derived class', for example:
|
|||
|
||||
class D(C):
|
||||
def m1(self, arg):
|
||||
return whatever**2
|
||||
return arg**2
|
||||
def m1_post(self, Result, arg):
|
||||
C.m1_post(self, Result, arg)
|
||||
assert Result < 100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue