Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca1a775

Browse files
committed
Fix markup.
1 parent 18bf43c commit ca1a775

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

Doc/whatsnew/whatsnew24.tex

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ \section{PEP 237: Unifying Long Integers and Integers}
105105
different result that's usually a long integer.
106106

107107
The 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
109110
in a warning in 2.3, evaluating to 0 on 32-bit platforms. In Python
110111
2.4, this expression now returns the correct answer, 8589934592.
111112

@@ -368,7 +369,7 @@ \subsection{The \class{Decimal} type}
368369
>>> cmath.sqrt(-d)
369370
351364.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
397398
28
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

405406
The 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)
414415
Traceback (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
437438
is being proposed as a standard, and underlies the new Python decimal
438439
type. 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

Comments
 (0)