Skip to content

Commit 39ce8db

Browse files
committed
steps towards new texgit version
1 parent 1f8cefe commit 39ce8db

File tree

21 files changed

+81
-81
lines changed

21 files changed

+81
-81
lines changed

text/main/basics/collections/dictionaries/dictionaries.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
\label{sec:dictionaries}%
33
%
44
\gitLoadAndExecPython{dicts:dicts_1}{}{collections}{dicts_1.py}{}%
5-
\listingPythonAndOutput{dicts:dicts_1}{dicts_1.py}{%
5+
\listingPythonAndOutput{dicts:dicts_1}{%
66
An example of using dictionaries in \python.}{}%
77
%
88
Dictionaries in \python\ are containers that store key-value pairs.

text/main/basics/collections/lists/lists.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
\label{sec:lists:basicFunctions}%
99
%
1010
\gitLoadAndExecPython{lists:lists_1}{}{collections}{lists_1.py}{}%
11-
\listingPythonAndOutput{lists:lists_1}{lists_1.py}{%
11+
\listingPythonAndOutput{lists:lists_1}{%
1212
A first example for using lists in \python:~creating, indexing, printing of and appending elements and other lists to lists.}{}%
1313
%
1414
\gitLoadAndExecPython{lists:lists_2}{}{collections}{lists_2.py}{}%
15-
\listingPythonAndOutput{lists:lists_2}{lists_2.py}{%
15+
\listingPythonAndOutput{lists:lists_2}{%
1616
A second example of using lists in \python: inserting and deleting elements, sorting and reversing lists.}{}%
1717
%
1818
\gitLoadAndExecPython{lists:lists_3}{}{collections}{lists_3.py}{}%
19-
\listingPythonAndOutput{lists:lists_3}{lists_3.py}{%
19+
\listingPythonAndOutput{lists:lists_3}{%
2020
A third example of using lists in \python: slicing, adding, and multiplying lists.}{}%
2121
%
2222
In \cref{lst:lists:lists_1}, we provide some first examples for using lists.
@@ -147,7 +147,7 @@
147147
\label{sec:listExampleForErrorsAndRuff}%
148148
%
149149
\gitLoadAndExecPython{lists:lists_error}{}{collections}{lists_error.py}{}%
150-
\listingPythonAndOutput{lists:lists_error}{lists_error.py}{%
150+
\listingPythonAndOutput{lists:lists_error}{%
151151
A program processing lists which exhibits some subtle errors and inefficiencies.}{}%
152152
%
153153
Now, in the previous chapter, we learned that static code analysis tools can help us to discover subtle problems in our programs.
@@ -206,7 +206,7 @@
206206
We can leave this outer call to \pythonil{list} away.
207207

208208
\gitLoadAndExecPython{lists:lists_fixed}{}{collections}{lists_fixed.py}{}%
209-
\listingPythonAndOutput{lists:lists_fixed}{lists_fixed.py}{%
209+
\listingPythonAndOutput{lists:lists_fixed}{%
210210
The corrected version of~\cref{lst:lists:lists_error}, taking into account the information given by \mypy\ in \cref{exec:lists:lists_error:mypy} and \ruff\ in \cref{exec:lists:lists_error:ruff}.}{}%
211211
%
212212
%

text/main/basics/collections/sets/sets.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
\label{sec:sets}%
33
%
44
\gitLoadAndExecPython{sets:sets_1}{}{collections}{sets_1.py}{}%
5-
\listingPythonAndOutput{sets:sets_1}{sets_1.py}{%
5+
\listingPythonAndOutput{sets:sets_1}{%
66
A first example of using sets in \python: creating, modifying, and converting sets. %
77
Since sets are unordered, printing them can yield a different result each time a program is executed (see \cref{bp:setsUnordered}).}{}%
88
%
99
\gitLoadAndExecPython{sets:sets_2}{}{collections}{sets_2.py}{}%
10-
\listingPythonAndOutput{sets:sets_2}{sets_2.py}{%
10+
\listingPythonAndOutput{sets:sets_2}{%
1111
A second example of using sets in \python: creating sets and set operations~(as illustrated in \cref{fig:setOperations}). %
1212
Since sets are unordered, printing them can yield a different result each time a program is executed~(see \cref{bp:setsUnordered}).}{}%
1313
%

text/main/basics/collections/tuples/tuples.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
\label{sec:tuples}%
33
%
44
\gitLoadAndExecPython{tuples:tuples_1}{}{collections}{tuples_1.py}{}%
5-
\listingPythonAndOutput{tuples:tuples_1}{tuples_1.py}{%
5+
\listingPythonAndOutput{tuples:tuples_1}{%
66
A first example of using tuples in \python:~creating, indexing, and printing of tuples.}{}%
77
%
88
\gitLoadAndExecPython{tuples:tuples_2}{}{collections}{tuples_2.py}{}%
9-
\listingPythonAndOutput{tuples:tuples_2}{tuples_2.py}{%
9+
\listingPythonAndOutput{tuples:tuples_2}{%
1010
A second example of using tuples in \python:~tuples with elements of different types and tuple unpacking.}{}%
1111
%
1212
\gitLoadAndExecPythonAndErrors{tuples:tuples_3}{}{collections}{tuples_3.py}{}%
13-
\listingPythonAndError{tuples:tuples_3}{tuples_3.py}{%
13+
\listingPythonAndError{tuples:tuples_3}{%
1414
A third example of using tuples in \python:~testing the immutability property.}%
1515
%
1616
\gitExec{exec:tuples:tuples_3:mypy}{\programmingWithPythonCodeRepo}{.}{_scripts_/mypy.sh collections tuples_3.py}%

text/main/basics/gettingStarted/firstProgram/firstProgram.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
It therefore will consist of the single statement \pythonil{print("Hello World!")}, as illustrated in \cref{lst:very_first_program}.
88

99
\gitLoadAndExecPython{very_first_program}{}{veryFirstProject}{very_first_program.py}{}%
10-
\listingPythonAndOutput{very_first_program}{very_first_program.py}{%
10+
\listingPythonAndOutput{very_first_program}{%
1111
Our very first \python\ program, which just prints \inQuotes{Hello World!}}{}%
1212
%
1313
\begin{figure}%

text/main/basics/variables/assignment/assignment.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
%
88
\hsection{A Simple Example of Variable Assignment and Comments in the Code}%
99
\gitLoadAndExecPython{variables:assignment}{}{variables}{assignment.py}{}%
10-
\listingPythonAndOutput{variables:assignment}{assignment.py}{%
10+
\listingPythonAndOutput{variables:assignment}{%
1111
A \python\ program showing some examples for variable assignments.}{}%
1212
%
1313
\begin{figure}[tb]%
@@ -234,7 +234,7 @@
234234
\end{align}%
235235
%
236236
\gitLoadAndExecPython{variables:pi_liu_hui}{}{variables}{pi_liu_hui.py}{}%
237-
\listingPythonAndOutput{variables:pi_liu_hui}{file}{%
237+
\listingPythonAndOutput{variables:pi_liu_hui}{%
238238
A \python\ program showing several steps of the approximation of~\numberPi\ using the method of LIU Hui~(刘徽).}{}%
239239
%
240240
\begin{figure}[tb]%

text/main/basics/variables/errorsInIde/errorsInIde.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
\label{sec:errorsInIde}%
33
%
44
\gitLoadAndExecPythonAndErrors{variables:assignment_wrong}{}{variables}{assignment_wrong.py}{}%
5-
\listingPythonAndError{variables:assignment_wrong}{assignment_wrong.py}{%
5+
\listingPythonAndError{variables:assignment_wrong}{%
66
A variant of \cref{lst:variables:assignment} with an error:~\pythonil{int_var} is accidentally spelled as \pythonil{intvar} in one location.}%
77
%
88
\begin{figure}%

text/main/basics/variables/identity/identity.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
\end{figure}%
2323
%
2424
\gitLoadAndExecPython{variables:identity_1}{}{variables}{identity_1.py}{}%
25-
\listingPythonAndOutput{variables:identity_1}{identity_1.py}{%
25+
\listingPythonAndOutput{variables:identity_1}{%
2626
An example of the difference between equality and identity\pythonIdx{sqrt}.}{}%
2727
%
2828
\gitLoadAndExecPython{variables:identity_2}{}{variables}{identity_2.py}{}%
29-
\listingPythonAndOutput{variables:identity_2}{identity_2.py}{%
29+
\listingPythonAndOutput{variables:identity_2}{%
3030
An second example of the difference between equality and identity.}{}%
3131
%
3232
We use variables to references objects in memory.

text/main/basics/variables/multiAndSwap/multiAndSwap.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
\hsection{Multiple Assignments and Value Swapping}%
22
%
33
\gitLoadAndExecPython{variables:multi_and_swap}{}{variables}{multi_and_swap.py}{}%
4-
\listingPythonAndOutput{variables:multi_and_swap}{multi_and_swap.py}{%
4+
\listingPythonAndOutput{variables:multi_and_swap}{%
55
A \python\ program assigning multiple values to multiple variables and using the same method to swap variable values.}{}%
66
%
77
Let us return to the topic of variables and assignments.

0 commit comments

Comments
 (0)