Message142161
"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”
"These C functions" are any of the C functions that are members of the type object. But they are C-level methods.
"to distinguish them from things like [].append (which we call “object methods”)."
[].append is a Python-level method object that wraps a C function.
My revised suggestion is "... in contrast to PyObject that contain C functions, such as list.append or [].append."
The only contrast that makes sense to me in this context is between directly callable C functions and Py_Objects (which have just been described) that contain a C function. I believe that author is addressing Python programmers who are used to 'method' referring to Python objects whereas the author wants to use 'method' to refer to C functions, which are not Python objects.
Or the sentence could be deleted. |
|
Date |
User |
Action |
Args |
2011-08-16 04:44:19 | terry.reedy | set | recipients:
+ terry.reedy, eric.araujo, eli.bendersky, docs@python, python-dev, eric.snow |
2011-08-16 04:44:19 | terry.reedy | set | messageid: <1313469859.3.0.657392022271.issue12672@psf.upfronthosting.co.za> |
2011-08-16 04:44:18 | terry.reedy | link | issue12672 messages |
2011-08-16 04:44:18 | terry.reedy | create | |
|