Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 729a42f

Browse files
committed
Issue #12672: remove confusing part of sentence in documentation
1 parent 0d7cda3 commit 729a42f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Doc/extending/newtypes.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ The Python runtime sees all Python objects as variables of type
3030
just contains the refcount and a pointer to the object's "type object". This is
3131
where the action is; the type object determines which (C) functions get called
3232
when, for instance, an attribute gets looked up on an object or it is multiplied
33-
by another object. These C functions are called "type methods" to distinguish
34-
them from things like ``[].append`` (which we call "object methods").
33+
by another object. These C functions are called "type methods".
3534

3635
So, if you want to define a new object type, you need to create a new type
3736
object.

0 commit comments

Comments
 (0)