Commit 3020f611 authored by Cory Quammen's avatar Cory Quammen

Fixup: Escape underscores in Python code sections

parent 7dc5d399
......@@ -1194,11 +1194,11 @@ as \py{min()} and \py{max()}, produce single values.
\begin{commonerrors}
In the \ui{Programmable Filter}, all the functions in
\py{vtk.numpy_interface.algorithms} are imported prior to executing the script.
\py{vtk.numpy\_interface.algorithms} are imported prior to executing the script.
As a result, some built-in functions, such as \py{min} and \py{max}, are
clobbered by that import. To use the built-in functions, import the \py{import
__builtin__} module and access those functions with, e.g., \py{__builtin__.min}
and \py{__builtin__.max}
\_\_builtin\_\_} module and access those functions with, e.g.,
\py{\_\_builtin\_\_.min} and \py{\_\_builtin\_\_.max}
\end{commonerrors}
\subsubsection{Accessing data}
......
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