\infinity,
\plusminus:  New macros to allow us to avoid math mode for these symbols.
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index e4c60b8..c5d55a8 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -752,6 +752,8 @@
 \newcommand{\C}{C}
 \newcommand{\EOF}{{\sc eof}}
 \newcommand{\NULL}{\constant{NULL}}
+\newcommand{\infinity}{\ensuremath{\infty}}
+\newcommand{\plusminus}{\ensuremath{\pm}}
 
 % Also for consistency: spell Python "Python", not "python"!