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

Skip to content

Commit 2829f1c

Browse files
committed
Fix a very minor (but annoying when looking for things!) markup nit.
1 parent 8c96369 commit 2829f1c

7 files changed

Lines changed: 43 additions & 0 deletions

File tree

Doc/ref/ref1.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ \chapter{Introduction\label{introduction}}
3333
built-in modules are mentioned when they interact in a significant way
3434
with the language definition.
3535

36+
3637
\section{Notation\label{notation}}
3738

3839
The descriptions of lexical analysis and syntax use a modified BNF

Doc/ref/ref3.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
\chapter{Data model\label{datamodel}}
22

3+
34
\section{Objects, values and types\label{objects}}
45

56
\dfn{Objects} are Python's abstraction for data. All data in a Python
@@ -95,6 +96,7 @@ \section{Objects, values and types\label{objects}}
9596
(Note that \samp{c = d = []} assigns the same object to both
9697
\code{c} and \code{d}.)
9798

99+
98100
\section{The standard type hierarchy\label{types}}
99101

100102
Below is a list of the types that are built into Python. Extension

Doc/ref/ref4.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
\chapter{Execution model \label{execmodel}}
22
\index{execution model}
33

4+
45
\section{Code blocks, execution frames, and namespaces \label{execframes}}
56
\index{code block}
67
\index{namespace}

Doc/ref/ref5.tex

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ \chapter{Expressions\label{expressions}}
1616
are the same as for \code{othername}.
1717
\index{syntax}
1818

19+
1920
\section{Arithmetic conversions\label{conversions}}
2021
\indexii{arithmetic}{conversion}
2122

@@ -54,6 +55,7 @@ \section{Atoms\label{atoms}}
5455
enclosure: parenth_form|list_display|dict_display|string_conversion
5556
\end{verbatim}
5657

58+
5759
\subsection{Identifiers (Names)\label{atom-identifiers}}
5860
\index{name}
5961
\index{identifier}
@@ -99,6 +101,7 @@ \subsection{Identifiers (Names)\label{atom-identifiers}}
99101
implementation defined truncation may happen. If the class name
100102
consists only of underscores, no transformation is done.
101103

104+
102105
\subsection{Literals\label{atom-literals}}
103106
\index{literal}
104107

@@ -122,6 +125,7 @@ \subsection{Literals\label{atom-literals}}
122125
\indexiii{immutable}{data}{type}
123126
\indexii{immutable}{object}
124127

128+
125129
\subsection{Parenthesized forms\label{parenthesized}}
126130
\index{parenthesized form}
127131

@@ -150,6 +154,7 @@ \subsection{Parenthesized forms\label{parenthesized}}
150154
\index{comma}
151155
\indexii{tuple}{display}
152156

157+
153158
\subsection{List displays\label{lists}}
154159
\indexii{list}{display}
155160
\indexii{list}{comprehensions}
@@ -181,6 +186,7 @@ \subsection{List displays\label{lists}}
181186
\obindex{list}
182187
\indexii{empty}{list}
183188

189+
184190
\subsection{Dictionary displays\label{dict}}
185191
\indexii{dictionary}{display}
186192

@@ -210,6 +216,7 @@ \subsection{Dictionary displays\label{dict}}
210216
stored for a given key value prevails.
211217
\indexii{immutable}{object}
212218

219+
213220
\subsection{String conversions\label{string-conversions}}
214221
\indexii{string}{conversion}
215222
\indexii{reverse}{quotes}
@@ -249,6 +256,7 @@ \subsection{String conversions\label{string-conversions}}
249256
\bifuncindex{repr}
250257
\bifuncindex{str}
251258

259+
252260
\section{Primaries\label{primaries}}
253261
\index{primary}
254262

@@ -259,6 +267,7 @@ \section{Primaries\label{primaries}}
259267
primary: atom | attributeref | subscription | slicing | call
260268
\end{verbatim}
261269

270+
262271
\subsection{Attribute references\label{attribute-references}}
263272
\indexii{attribute}{reference}
264273

@@ -279,6 +288,7 @@ \subsection{Attribute references\label{attribute-references}}
279288
\obindex{module}
280289
\obindex{list}
281290

291+
282292
\subsection{Subscriptions\label{subscriptions}}
283293
\index{subscription}
284294

@@ -316,6 +326,7 @@ \subsection{Subscriptions\label{subscriptions}}
316326
\index{character}
317327
\indexii{string}{item}
318328

329+
319330
\subsection{Slicings\label{slicings}}
320331
\index{slicing}
321332
\index{slice}
@@ -382,6 +393,7 @@ \subsection{Slicings\label{slicings}}
382393
\withsubitem{(slice object attribute)}{\ttindex{start}
383394
\ttindex{stop}\ttindex{step}}
384395

396+
385397
\subsection{Calls\label{calls}}
386398
\index{call}
387399

@@ -556,6 +568,7 @@ \section{Unary arithmetic operations \label{unary}}
556568
a \exception{TypeError} exception is raised.
557569
\exindex{TypeError}
558570

571+
559572
\section{Binary arithmetic operations\label{binary}}
560573
\indexiii{binary}{arithmetic}{operation}
561574

@@ -626,6 +639,7 @@ \section{Binary arithmetic operations\label{binary}}
626639
type.
627640
\index{subtraction}
628641

642+
629643
\section{Shifting operations\label{shifting}}
630644
\indexii{shifting}{operation}
631645

@@ -650,6 +664,7 @@ \section{Shifting operations\label{shifting}}
650664
exception.
651665
\exindex{ValueError}
652666

667+
653668
\section{Binary bit-wise operations\label{bitwise}}
654669
\indexiii{binary}{bit-wise}{operation}
655670

@@ -678,6 +693,7 @@ \section{Binary bit-wise operations\label{bitwise}}
678693
\indexii{bit-wise}{or}
679694
\indexii{inclusive}{or}
680695

696+
681697
\section{Comparisons\label{comparisons}}
682698
\index{comparison}
683699

@@ -808,6 +824,7 @@ \section{Comparisons\label{comparisons}}
808824
\opindex{is not}
809825
\indexii{identity}{test}
810826

827+
811828
\section{Boolean operations\label{Booleans}}
812829
\indexii{Boolean}{operation}
813830

Doc/ref/ref6.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ \chapter{Simple statements \label{simple}}
2222
| exec_stmt
2323
\end{verbatim}
2424

25+
2526
\section{Expression statements \label{exprstmts}}
2627
\indexii{expression}{statement}
2728

@@ -52,6 +53,7 @@ \section{Expression statements \label{exprstmts}}
5253
\indexii{writing}{values}
5354
\indexii{procedure}{call}
5455

56+
5557
\section{Assert statements \label{assert}}
5658

5759
Assert statements\stindex{assert} are a convenient way to insert
@@ -89,6 +91,7 @@ \section{Assert statements \label{assert}}
8991
Assignments to \code{__debug__} are illegal. The value for the
9092
built-in variable is determined when the interpreter starts.
9193

94+
9295
\section{Assignment statements \label{assignment}}
9396

9497
Assignment statements\indexii{assignment}{statement} are used to
@@ -306,6 +309,7 @@ \section{The \keyword{pass} statement \label{pass}}
306309
class C: pass # a class with no methods (yet)
307310
\end{verbatim}
308311

312+
309313
\section{The \keyword{del} statement \label{del}}
310314
\stindex{del}
311315

@@ -334,6 +338,7 @@ \section{The \keyword{del} statement \label{del}}
334338
right type (but even this is determined by the sliced object).
335339
\indexii{attribute}{deletion}
336340

341+
337342
\section{The \keyword{print} statement \label{print}}
338343
\stindex{print}
339344

@@ -385,6 +390,7 @@ \section{The \keyword{print} statement \label{print}}
385390
first expression evaluates to \code{None}, then \code{sys.stdout} is
386391
used as the file for output.
387392

393+
388394
\section{The \keyword{return} statement \label{return}}
389395
\stindex{return}
390396

@@ -408,6 +414,7 @@ \section{The \keyword{return} statement \label{return}}
408414
before really leaving the function.
409415
\kwindex{finally}
410416

417+
411418
\section{The \keyword{raise} statement \label{raise}}
412419
\stindex{raise}
413420

@@ -448,6 +455,7 @@ \section{The \keyword{raise} statement \label{raise}}
448455
transparently in an except clause.
449456
\obindex{traceback}
450457

458+
451459
\section{The \keyword{break} statement \label{break}}
452460
\stindex{break}
453461

@@ -475,6 +483,7 @@ \section{The \keyword{break} statement \label{break}}
475483
before really leaving the loop.
476484
\kwindex{finally}
477485

486+
478487
\section{The \keyword{continue} statement \label{continue}}
479488
\stindex{continue}
480489

@@ -494,6 +503,7 @@ \section{The \keyword{continue} statement \label{continue}}
494503
\indexii{loop}{statement}
495504
\kwindex{finally}
496505

506+
497507
\section{The \keyword{import} statement \label{import}}
498508
\stindex{import}
499509

@@ -594,6 +604,7 @@ \section{The \keyword{import} statement \label{import}}
594604
[XXX Also should mention __import__().]
595605
\bifuncindex{__import__}
596606

607+
597608
\section{The \keyword{global} statement \label{global}}
598609
\stindex{global}
599610

@@ -634,6 +645,7 @@ \section{The \keyword{global} statement \label{global}}
634645
\bifuncindex{execfile}
635646
\bifuncindex{compile}
636647

648+
637649
\section{The \keyword{exec} statement \label{exec}}
638650
\stindex{exec}
639651

Doc/ref/ref7.tex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ \chapter{Compound statements\label{compound}}
6060
The formatting of the grammar rules in the following sections places
6161
each clause on a separate line for clarity.
6262

63+
6364
\section{The \keyword{if} statement\label{if}}
6465
\stindex{if}
6566

@@ -80,6 +81,7 @@ \section{The \keyword{if} statement\label{if}}
8081
\kwindex{elif}
8182
\kwindex{else}
8283

84+
8385
\section{The \keyword{while} statement\label{while}}
8486
\stindex{while}
8587
\indexii{loop}{statement}
@@ -105,6 +107,7 @@ \section{The \keyword{while} statement\label{while}}
105107
\stindex{break}
106108
\stindex{continue}
107109

110+
108111
\section{The \keyword{for} statement\label{for}}
109112
\stindex{for}
110113
\indexii{loop}{statement}
@@ -169,6 +172,7 @@ \section{The \keyword{for} statement\label{for}}
169172
if x < 0: a.remove(x)
170173
\end{verbatim}
171174

175+
172176
\section{The \keyword{try} statement\label{try}}
173177
\stindex{try}
174178

@@ -278,6 +282,7 @@ \section{The \keyword{try} statement\label{try}}
278282
\stindex{break}
279283
\stindex{continue}
280284

285+
281286
\section{Function definitions\label{function}}
282287
\indexii{function}{definition}
283288

@@ -368,6 +373,7 @@ \section{Function definitions\label{function}}
368373
function will change in Python 2.2. See the appendix for a
369374
description of the new semantics.
370375

376+
371377
\section{Class definitions\label{class}}
372378
\indexii{class}{definition}
373379

Doc/ref/ref8.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ \chapter{Top-level components\label{top-level}}
66
gives the syntax used in these cases.
77
\index{interpreter}
88

9+
910
\section{Complete Python programs\label{programs}}
1011
\index{program}
1112

@@ -43,6 +44,7 @@ \section{Complete Python programs\label{programs}}
4344
\index{command line}
4445
\index{standard input}
4546

47+
4648
\section{File input\label{file-input}}
4749

4850
All input read from non-interactive files has the same form:
@@ -63,6 +65,7 @@ \section{File input\label{file-input}}
6365

6466
\end{itemize}
6567

68+
6669
\section{Interactive input\label{interactive}}
6770

6871
Input in interactive mode is parsed using the following grammar:
@@ -75,6 +78,7 @@ \section{Interactive input\label{interactive}}
7578
line in interactive mode; this is needed to help the parser detect the
7679
end of the input.
7780

81+
7882
\section{Expression input\label{expression-input}}
7983
\index{input}
8084

0 commit comments

Comments
 (0)