[Python-checkins] python/dist/src/Doc/api concrete.tex,1.11,1.12

fdrake@sourceforge.net fdrake@sourceforge.net
2002年4月12日 12:32:11 -0700


Update of /cvsroot/python/python/dist/src/Doc/api
In directory usw-pr-cvs1:/tmp/cvs-serv31546/api
Modified Files:
	concrete.tex 
Log Message:
Warn people away from PyModule_GetDict(), but not too strongly.
(The real issue is whether modules can benefit from an alternate
implementation strategy rather than using a dictionary. We should migrate
away from direct dictionary manipulation to allow more room for Jeremy to
flex the implementation with changes in globals lookup.)
Index: concrete.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/concrete.tex,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** concrete.tex	12 Apr 2002 16:15:10 -0000	1.11
--- concrete.tex	12 Apr 2002 19:32:07 -0000	1.12
***************
*** 2112,2115 ****
--- 2112,2118 ----
 attribute of the module object. This function never fails.
 \withsubitem{(module attribute)}{\ttindex{__dict__}}
+ It is recommended extensions use other \cfunction{PyModule_*()}
+ and \cfunction{PyObject_*()} functions rather than directly
+ manipulate a module's \member{__dict__}.
 \end{cfuncdesc}
 

AltStyle によって変換されたページ (->オリジナル) /