Commit 729a42f2 authored by Eli Bendersky's avatar Eli Bendersky

Issue #12672: remove confusing part of sentence in documentation

parent 0d7cda3e
...@@ -30,8 +30,7 @@ The Python runtime sees all Python objects as variables of type ...@@ -30,8 +30,7 @@ The Python runtime sees all Python objects as variables of type
just contains the refcount and a pointer to the object's "type object". This is just contains the refcount and a pointer to the object's "type object". This is
where the action is; the type object determines which (C) functions get called where the action is; the type object determines which (C) functions get called
when, for instance, an attribute gets looked up on an object or it is multiplied when, for instance, an attribute gets looked up on an object or it is multiplied
by another object. These C functions are called "type methods" to distinguish by another object. These C functions are called "type methods".
them from things like ``[].append`` (which we call "object methods").
So, if you want to define a new object type, you need to create a new type So, if you want to define a new object type, you need to create a new type
object. object.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment