@@ -105,7 +105,8 @@ \section{PEP 237: Unifying Long Integers and Integers}
105105different result that's usually a long integer.
106106
107107The problematic expressions are primarily left shifts and lengthy
108- hexadecimal and octal constants. For example, \code {2 << 32} results
108+ hexadecimal and octal constants. For example,
109+ \code {2 \textless {}\textless {} 32} results
109110in a warning in 2.3, evaluating to 0 on 32-bit platforms. In Python
1101112.4, this expression now returns the correct answer, 8589934592.
111112
@@ -368,7 +369,7 @@ \subsection{The \class{Decimal} type}
368369>>> cmath.sqrt(-d)
369370351364.18288201344j
370371>>> d.sqrt()
371- Decimal(`` 351364.1828820134592177245001'' )
372+ Decimal(" 351364.1828820134592177245001" )
372373\end {verbatim }
373374
374375
@@ -396,10 +397,10 @@ \subsection{The \class{Context} type}
396397>>> decimal.getcontext().prec
39739828
398399>>> decimal.Decimal(1) / decimal.Decimal(7)
399- Decimal(`` 0.1428571428571428571428571429'' )
400+ Decimal(" 0.1428571428571428571428571429" )
400401>>> decimal.getcontext().prec = 9
401402>>> decimal.Decimal(1) / decimal.Decimal(7)
402- Decimal(`` 0.142857143'' )
403+ Decimal(" 0.142857143" )
403404\end {verbatim }
404405
405406The default action for error conditions is to return a special value
@@ -408,7 +409,7 @@ \subsection{The \class{Context} type}
408409
409410\begin {verbatim }
410411>>> decimal.Decimal(1) / decimal.Decimal(0)
411- Decimal(`` Infinity'' )
412+ Decimal(" Infinity" )
412413>>> decimal.getcontext().trap_enablers[decimal.DivisionByZero] = True
413414>>> decimal.Decimal(1) / decimal.Decimal(0)
414415Traceback (most recent call last):
@@ -425,7 +426,7 @@ \subsection{The \class{Context} type}
425426\seepep {327}{Decimal Data Type}{Written by Facundo Batista and implemented
426427 by Facundo Batista, Eric Price, Raymond Hettinger, Aahz, and Tim Peters.}
427428
428- \seeurl {http://research.microsoft.com/~ hollasch/cgindex/coding/ieeefloat.html}
429+ \seeurl {http://research.microsoft.com/\textasciitilde hollasch/cgindex/coding/ieeefloat.html}
429430{A more detailed overview of the IEEE-754 representation.}
430431
431432\seeurl {http://www.lahey.com/float.htm}
@@ -436,7 +437,7 @@ \subsection{The \class{Context} type}
436437{A description of a decimal-based representation. This representation
437438is being proposed as a standard, and underlies the new Python decimal
438439type. Much of this material was written by Mike Cowlishaw, designer of the
439- REXX language.}
440+ Rexx language.}
440441
441442\end {seealso }
442443
@@ -584,7 +585,7 @@ \subsection{Optimizations}
584585
585586\begin {itemize }
586587
587- \item The inner loops for list and tupleslicing
588+ \item The inner loops for list and tuple slicing
588589 were optimized and now run about one-third faster. The inner
589590 loops were also optimized for dictionaries with performance
590591 boosts to \method {keys()}, \method {values()}, \method {items()},
@@ -857,7 +858,7 @@ \section{New, Improved, and Deprecated Modules}
857858
858859
859860% ======================================================================
860- % whole new modules get described in \ subsections here
861+ % whole new modules get described in subsections here
861862
862863\subsection {cookielib }
863864
0 commit comments