[Python-checkins] python/dist/src/Doc/lib libstdtypes.tex, 1.162, 1.163

mwh at users.sourceforge.net mwh at users.sourceforge.net
Thu Aug 12 20:12:46 CEST 2004


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2096/Doc/lib

Modified Files:
	libstdtypes.tex 
Log Message:
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.


Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.162
retrieving revision 1.163
diff -C2 -d -r1.162 -r1.163
*** libstdtypes.tex	7 Aug 2004 16:41:34 -0000	1.162
--- libstdtypes.tex	12 Aug 2004 18:12:43 -0000	1.163
***************
*** 1683,1705 ****
  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.
  
  \subsubsection{Methods \label{typesmethods}}
--- 1683,1688 ----
  different object types.
  
! See the \citetitle[../ref/ref.html]{Python Reference Manual} for more
! information.
  
  \subsubsection{Methods \label{typesmethods}}



More information about the Python-checkins mailing list