From: Eli Bendersky Date: Fri, 19 Aug 2011 03:33:39 +0000 (+0300) Subject: Issue #12672: remove confusing part of sentence in documentation X-Git-Tag: v2.7.3rc1~505 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ceef09b7414de5349c9b1cc06444d9a40f90e11;p=thirdparty%2FPython%2Fcpython.git Issue #12672: remove confusing part of sentence in documentation --- diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst index fb2c15a79a07..f4c3c0275949 100644 --- a/Doc/extending/newtypes.rst +++ b/Doc/extending/newtypes.rst @@ -38,8 +38,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 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 -by another object. These C functions are called "type methods" to distinguish -them from things like ``[].append`` (which we call "object methods"). +by another object. These C functions are called "type methods". So, if you want to define a new object type, you need to create a new type object.