mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
don't remove self from example code in the HTML output (closes #13223)
Patch by Víctor Terrón.
This commit is contained in:
parent
3c2dca67ac
commit
ed1160b39c
4 changed files with 64 additions and 2 deletions
|
@ -15,6 +15,16 @@ class B(object):
|
|||
NO_MEANING = "eggs"
|
||||
pass
|
||||
|
||||
class C(object):
|
||||
def say_no(self):
|
||||
return "no"
|
||||
def get_answer(self):
|
||||
""" Return say_no() """
|
||||
return self.say_no()
|
||||
def is_it_true(self):
|
||||
""" Return self.get_answer() """
|
||||
return self.get_answer()
|
||||
|
||||
def doc_func():
|
||||
"""
|
||||
This function solves all of the world's problems:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue