Kaydet (Commit) 3d54de2a authored tarafından Guido van Rossum's avatar Guido van Rossum

clarified code objects

üst 46f21572
...@@ -495,11 +495,11 @@ but they are mentioned here for completeness. ...@@ -495,11 +495,11 @@ but they are mentioned here for completeness.
\begin{description} \begin{description}
\item[Code objects] \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 object and a function object is that the function object contains an
explicit reference to the function's context (the module in which it 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 was defined) while a code object contains no context.
to execute a bare code object.
\obindex{code} \obindex{code}
Special read-only attributes: \verb@co_code@ is a string representing Special read-only attributes: \verb@co_code@ is a string representing
......
...@@ -495,11 +495,11 @@ but they are mentioned here for completeness. ...@@ -495,11 +495,11 @@ but they are mentioned here for completeness.
\begin{description} \begin{description}
\item[Code objects] \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 object and a function object is that the function object contains an
explicit reference to the function's context (the module in which it 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 was defined) while a code object contains no context.
to execute a bare code object.
\obindex{code} \obindex{code}
Special read-only attributes: \verb@co_code@ is a string representing Special read-only attributes: \verb@co_code@ is a string representing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment