summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-04-12 19:32:07 (GMT)
committerFred Drake <fdrake@acm.org>2002-04-12 19:32:07 (GMT)
commitf495ef7466e1955206d792d6c8e215d98bbc3db0 (patch)
tree6db123093206bf1d8c9157cea0ad8eb9e8b7a9a6 /Doc
parentc69343b69ab21a2cfc6cfd45b8768a2c1574a8bf (diff)
downloadcpython-f495ef7466e1955206d792d6c8e215d98bbc3db0.zip
cpython-f495ef7466e1955206d792d6c8e215d98bbc3db0.tar.gz
cpython-f495ef7466e1955206d792d6c8e215d98bbc3db0.tar.bz2
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.)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/api/concrete.tex3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex
index f175ff1..9762924 100644
--- a/Doc/api/concrete.tex
+++ b/Doc/api/concrete.tex
@@ -2111,6 +2111,9 @@ There are only a few functions special to module objects.
namespace; this object is the same as the \member{__dict__}
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}
\begin{cfuncdesc}{char*}{PyModule_GetName}{PyObject *module}