mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
#17351: remove "object" inheritance from docs. Patch by Phil Elson.
This commit is contained in:
parent
42a541bd49
commit
af8838f443
5 changed files with 9 additions and 8 deletions
|
|
@ -225,7 +225,7 @@ function. The following wrapper makes that easy to do::
|
|||
|
||||
def cmp_to_key(mycmp):
|
||||
'Convert a cmp= function into a key= function'
|
||||
class K(object):
|
||||
class K:
|
||||
def __init__(self, obj, *args):
|
||||
self.obj = obj
|
||||
def __lt__(self, other):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue