summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-08-12 18:12:44 (GMT)
committerMichael W. Hudson <mwh@python.net>2004-08-12 18:12:44 (GMT)
commit5e897959db37752da4c6b476903cdc5e1357093c (patch)
tree73745bf828ac5d8d77254a9d2895169ae6bbae3c /Doc/lib
parent5523c2517f14aed04f94865189ce986040652415 (diff)
downloadcpython-5e897959db37752da4c6b476903cdc5e1357093c.zip
cpython-5e897959db37752da4c6b476903cdc5e1357093c.tar.gz
cpython-5e897959db37752da4c6b476903cdc5e1357093c.tar.bz2
This is my patch
[ 1004703 ] Make func_name writable plus fixing a couple of nits in the documentation changes spotted by MvL and a Misc/NEWS entry.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libstdtypes.tex21
1 files changed, 2 insertions, 19 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index 01e800a..e97009e 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -1682,25 +1682,8 @@ and user-defined functions. Both support the same operation (to call
the function), but the implementation is different, hence the
different object types.
-The implementation adds two special read-only attributes:
-\code{\var{f}.func_code} is a function's \dfn{code
-object}\obindex{code} (see below) and \code{\var{f}.func_globals} is
-the dictionary used as the function's global namespace (this is the
-same as \code{\var{m}.__dict__} where \var{m} is the module in which
-the function \var{f} was defined).
-
-Function objects also support getting and setting arbitrary
-attributes, which can be used, for example, to attach metadata to
-functions. Regular attribute dot-notation is used to get and set such
-attributes. \emph{Note that the current implementation only supports
-function attributes on user-defined functions. Function attributes on
-built-in functions may be supported in the future.}
-
-Functions have another special attribute \code{\var{f}.__dict__}
-(a.k.a. \code{\var{f}.func_dict}) which contains the namespace used to
-support function attributes. \code{__dict__} and \code{func_dict} can
-be accessed directly or set to a dictionary object. A function's
-dictionary cannot be deleted.
+See the \citetitle[../ref/ref.html]{Python Reference Manual} for more
+information.
\subsubsection{Methods \label{typesmethods}}
\obindex{method}