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

Skip to content

Commit 7c0240f

Browse files
committed
e.g. -> e.g.,
1 parent c2aa9fb commit 7c0240f

5 files changed

Lines changed: 16 additions & 15 deletions

File tree

Doc/ref/ref1.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ \section{Notation}
7171
are used: Two literal characters separated by three dots mean a choice
7272
of any single character in the given (inclusive) range of \ASCII{}
7373
characters. A phrase between angular brackets (\code{<...>}) gives an
74-
informal description of the symbol defined; e.g. this could be used
74+
informal description of the symbol defined; e.g., this could be used
7575
to describe the notion of `control character' if needed.
7676
\index{lexical definitions}
7777
\index{ASCII@\ASCII{}}

Doc/ref/ref2.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ \subsection{Logical Lines}
3838
The end of
3939
a logical line is represented by the token NEWLINE. Statements cannot
4040
cross logical line boundaries except where NEWLINE is allowed by the
41-
syntax (e.g. between statements in compound statements).
41+
syntax (e.g., between statements in compound statements).
4242
A logical line is constructed from one or more \emph{physical lines}
4343
by following the explicit or implicit \emph{line joining} rules.
4444
\index{logical line}
@@ -455,7 +455,7 @@ \subsection{Floating point literals}
455455
\begin{verbatim}
456456
floatnumber: pointfloat | exponentfloat
457457
pointfloat: [intpart] fraction | intpart "."
458-
exponentfloat: (intpart | pointfloat) exponent
458+
exponentfloat: (nonzerodigit digit* | pointfloat) exponent
459459
intpart: nonzerodigit digit* | "0"
460460
fraction: "." digit+
461461
exponent: ("e"|"E") ["+"|"-"] digit+
@@ -487,10 +487,10 @@ \subsection{Imaginary literals}
487487
0.0. Complex numbers are represented as a pair of floating point
488488
numbers and have the same restrictions on their range. To create a
489489
complex number with a nonzero real part, add a floating point number
490-
to it, e.g. \code{(3+4j)}. Some examples of imaginary literals:
490+
to it, e.g., \code{(3+4j)}. Some examples of imaginary literals:
491491

492492
\begin{verbatim}
493-
3.14j 10.j 10 j .001j 1e100j 3.14e-10j
493+
3.14j 10.j 10j .001j 1e100j 3.14e-10j
494494
\end{verbatim}
495495

496496

Doc/ref/ref3.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,8 @@ \subsection{Basic customization}
810810

811811

812812
\item[{\tt __del__(self)}]
813-
Called when the instance is about to be destroyed. If a base class
813+
Called when the instance is about to be destroyed. This is also
814+
called a destructor\index{destructor}. If a base class
814815
has a \method{__del__()} method, the derived class's \method{__del__()} method
815816
must explicitly call it to ensure proper deletion of the base class
816817
part of the instance. Note that it is possible (though not recommended!)
@@ -1215,7 +1216,7 @@ \subsection{Emulating numeric types}
12151216
\strong{Coercion rules}: to evaluate \var{x} \var{op} \var{y}, the
12161217
following steps are taken (where \method{__op__()} and
12171218
\method{__rop__()} are the method names corresponding to \var{op},
1218-
e.g. if var{op} is `\code{+}', \method{__add__()} and
1219+
e.g., if var{op} is `\code{+}', \method{__add__()} and
12191220
\method{__radd__()} are used). If an exception occurs at any point,
12201221
the evaluation is abandoned and exception handling takes over.
12211222

Doc/ref/ref4.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ \section{Code blocks, execution frames, and namespaces} \label{execframes}
1212
(like function bodies) may be executed many times. Code blocks may
1313
textually contain other code blocks. Code blocks may invoke other
1414
code blocks (that may or may not be textually contained in them) as
15-
part of their execution, e.g. by invoking (calling) a function.
15+
part of their execution, e.g., by invoking (calling) a function.
1616
\index{code block}
1717
\indexii{code}{block}
1818

Doc/ref/ref5.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ \section{Arithmetic conversions}
3636
is necessary.
3737
\end{itemize}
3838

39-
Some additional rules apply for certain operators (e.g. a string left
39+
Some additional rules apply for certain operators (e.g., a string left
4040
argument to the `\%' operator). Extensions can define their own
4141
coercions.
4242
\section{Atoms}
@@ -216,7 +216,7 @@ \subsection{String conversions}
216216
(In particular, converting a string adds quotes around it and converts
217217
``funny'' characters to escape sequences that are safe to print.)
218218

219-
It is illegal to attempt to convert recursive objects (e.g. lists or
219+
It is illegal to attempt to convert recursive objects (e.g., lists or
220220
dictionaries that contain a reference to themselves, directly or
221221
indirectly.)
222222
\obindex{recursive}
@@ -248,7 +248,7 @@ \subsection{Attribute references}
248248
\end{verbatim}
249249

250250
The primary must evaluate to an object of a type that supports
251-
attribute references, e.g. a module or a list. This object is then
251+
attribute references, e.g., a module or a list. This object is then
252252
asked to produce the attribute whose name is the identifier. If this
253253
attribute is not available, the exception
254254
\exception{AttributeError}\exindex{AttributeError} is raised.
@@ -361,7 +361,7 @@ \subsection{Slicings}
361361
\subsection{Calls} \label{calls}
362362
\index{call}
363363

364-
A call calls a callable object (e.g. a function) with a possibly empty
364+
A call calls a callable object (e.g., a function) with a possibly empty
365365
series of arguments:
366366
\obindex{callable}
367367

@@ -567,7 +567,7 @@ \section{Binary arithmetic operations}
567567
division of the first argument by the second. The numeric arguments
568568
are first converted to a common type. A zero right argument raises
569569
the \exception{ZeroDivisionError} exception. The arguments may be floating
570-
point numbers, e.g. \code{3.14\%0.7} equals \code{0.34} (since
570+
point numbers, e.g., \code{3.14\%0.7} equals \code{0.34} (since
571571
\code{3.14} equals \code{4*0.7 + 0.34}.) The modulo operator always
572572
yields a result with the same sign as its second operand (or zero);
573573
the absolute value of the result is strictly smaller than the second
@@ -663,7 +663,7 @@ \section{Comparisons}
663663

664664
Comparisons yield integer values: \code{1} for true, \code{0} for false.
665665

666-
Comparisons can be chained arbitrarily, e.g. \code{x < y <= z} is
666+
Comparisons can be chained arbitrarily, e.g., \code{x < y <= z} is
667667
equivalent to \code{x < y and y <= z}, except that \code{y} is
668668
evaluated only once (but in both cases \code{z} is not evaluated at all
669669
when \code{x < y} is found to be false).
@@ -789,7 +789,7 @@ \section{Boolean operations} \label{Booleans}
789789
replaced by a default value if it is empty, the expression
790790
\code{s or 'foo'} yields the desired value. Because \keyword{not} has to
791791
invent a value anyway, it does not bother to return a value of the
792-
same type as its argument, so e.g. \code{not 'foo'} yields \code{0},
792+
same type as its argument, so e.g., \code{not 'foo'} yields \code{0},
793793
not \code{''}.)
794794

795795
Lambda forms (lambda expressions) have the same syntactic position as

0 commit comments

Comments
 (0)