[Python-checkins] r80030 - python/trunk/Doc/howto/descriptor.rst
georg.brandl
python-checkins at python.org
Tue Apr 13 08:43:54 CEST 2010
Author: georg.brandl
Date: Tue Apr 13 08:43:54 2010
New Revision: 80030
Log:
Get rid of multi-row cells.
Modified:
python/trunk/Doc/howto/descriptor.rst
Modified: python/trunk/Doc/howto/descriptor.rst
==============================================================================
--- python/trunk/Doc/howto/descriptor.rst (original)
+++ python/trunk/Doc/howto/descriptor.rst Tue Apr 13 08:43:54 2010
@@ -323,16 +323,16 @@
This chart summarizes the binding and its two most useful variants:
- +-----------------+--------------+----------------------+------------------+
- | Transformation | | Called from an | Called from a |
- | | | Object | Class |
- +=================+==============+======================+==================+
- | | function | f(obj, \*args) | f(\*args) |
- + +--------------+----------------------+------------------+
- | Descriptor | staticmethod | f(\*args) | f(\*args) |
- + +--------------+----------------------+------------------+
- | | classmethod | f(type(obj), \*args) | f(klass, \*args) |
- +-----------------+--------------+----------------------+------------------+
+ +-----------------+----------------------+------------------+
+ | Transformation | Called from an | Called from a |
+ | | Object | Class |
+ +=================+======================+==================+
+ | function | f(obj, \*args) | f(\*args) |
+ +-----------------+----------------------+------------------+
+ | staticmethod | f(\*args) | f(\*args) |
+ +-----------------+----------------------+------------------+
+ | classmethod | f(type(obj), \*args) | f(klass, \*args) |
+ +-----------------+----------------------+------------------+
Static methods return the underlying function without changes. Calling either
``c.f`` or ``C.f`` is the equivalent of a direct lookup into
More information about the Python-checkins
mailing list