From: Guido van Rossum Date: Tue, 7 Mar 1995 10:09:55 +0000 (+0000) Subject: clarified code objects X-Git-Tag: v1.2b4~108 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d54de2ab924a824e8d846a67db72648525438a8;p=thirdparty%2FPython%2Fcpython.git clarified code objects --- diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex index 35b4ecfdba17..0904849f8b8e 100644 --- a/Doc/ref/ref3.tex +++ b/Doc/ref/ref3.tex @@ -495,11 +495,11 @@ but they are mentioned here for completeness. \begin{description} \item[Code objects] -Code objects represent executable code. The difference between a code +Code objects represent ``pseudo-compiled'' executable Python code. +The difference between a code object and a function object is that the function object contains an explicit reference to the function's context (the module in which it -was defined) while a code object contains no context. There is no way -to execute a bare code object. +was defined) while a code object contains no context. \obindex{code} Special read-only attributes: \verb@co_code@ is a string representing diff --git a/Doc/ref3.tex b/Doc/ref3.tex index 35b4ecfdba17..0904849f8b8e 100644 --- a/Doc/ref3.tex +++ b/Doc/ref3.tex @@ -495,11 +495,11 @@ but they are mentioned here for completeness. \begin{description} \item[Code objects] -Code objects represent executable code. The difference between a code +Code objects represent ``pseudo-compiled'' executable Python code. +The difference between a code object and a function object is that the function object contains an explicit reference to the function's context (the module in which it -was defined) while a code object contains no context. There is no way -to execute a bare code object. +was defined) while a code object contains no context. \obindex{code} Special read-only attributes: \verb@co_code@ is a string representing