Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit cfb1063

Browse files
committed
Removed deprecated datatypes file
Basis types are described within 'stdtypes.txt'. Fixed typos and references mistakes.
1 parent 926f851 commit cfb1063

File tree

7 files changed

+19
-275
lines changed

7 files changed

+19
-275
lines changed

src/appx/precedence.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ same precedence (use left-to-right precedence).
2727
+------------------------+----------------------------------------------------+
2828
| ``await x`` | Await expression |
2929
+------------------------+----------------------------------------------------+
30-
| ``**`` | Exponentiation[#]_ |
30+
| ``**`` | Exponentiation [#]_ |
3131
+------------------------+----------------------------------------------------+
3232
| ``+x``, ``-x``, ``~x`` | Positive, negative, bitwise NOT |
3333
+------------------------+----------------------------------------------------+
3434
| ``*``, ``@``, ``/``, | Multiplication, matrix multiplication, division, |
35-
| ``//``, ``%`` | floor division, remainder[#]_ |
35+
| ``//``, ``%`` | floor division, remainder [#]_ |
3636
+------------------------+----------------------------------------------------+
3737
| ``+``, ``-`` | Addition and subtraction |
3838
+------------------------+----------------------------------------------------+

src/appx/printf.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
String objects have one unique built-in operation: the ``%`` operator (modulo).
1010
This is also known as the string *formatting* or *interpolation* operator
11-
:cite:`docs-python:printf-style`. Given ``format % values`` (where *format* is
12-
a string), ``%`` conversion specifications in *format* are replaced with zero
13-
or more elements of *values*. If *format* requires a single argument, *values*
14-
may be a single non-tuple object.
11+
:cite:`docs-python:printf-formatting`. Given ``format % values`` (where
12+
*format* is a string), ``%`` conversion specifications in *format* are replaced
13+
with zero or more elements of *values*. If *format* requires a single argument,
14+
*values* may be a single non-tuple object.
1515

1616
The conversion flag characters are:
1717

@@ -57,7 +57,7 @@ The conversion types are:
5757
+------------+----------------------------------------------------------------+
5858
| ``'g'`` | Floating point format. Uses lowercase exponential format if |
5959
| | exponent is less that -4 or not less than precision, decimal |
60-
| | format overwise. |
60+
| | format otherwise. |
6161
| ``'G'`` | |
6262
+------------+----------------------------------------------------------------+
6363
| ``'c'`` | Single character (accepts integer or single character string) |

src/basics/datatypes.txt

Lines changed: 0 additions & 257 deletions
This file was deleted.

src/basics/index.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
variables
99
syntax
10-
datatypes
1110
stdtypes
1211
controlflow
1312
functions

src/basics/stdtypes.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Numeric types
1212

1313
There are 3 distinct numeric types: *integers*, *floating point numbers*, and
1414
*complex numbers*. In addition, Booleans are a subtype of integers. Integers
15-
have unlimited precision. Floating point numbers are usually implemented usign
15+
have unlimited precision. Floating point numbers are usually implemented using
1616
``double`` in C. Complex numbers have a real and imaginary part, which are each
1717
a floating point number.
1818

@@ -127,7 +127,7 @@ They may be constructed in several ways:
127127
- using a pair of square brackets to denote the empty list: ``[]``
128128
- using square brackets, separating items with commas: ``[a]``, ``[a, b, c]``
129129
- using a list comprehension: ``[x for x in iterable]``
130-
- using the type constuctor: ``list()`` or ``list(iterable)``
130+
- using the type constructor: ``list()`` or ``list(iterable)``
131131

132132
Tuples
133133
------
@@ -185,7 +185,7 @@ types results in inequality, and ordering comparison across these types raises
185185

186186
Sequences compare lexicographically using comparison of corresponding elements.
187187
The built-in containers typically assume identical objects are equal to
188-
themselves. Lexicographical comparison between buit-in collections works as
188+
themselves. Lexicographical comparison between built-in collections works as
189189
follows:
190190

191191
- For two collections to compare equal, they must be of the same type, have
@@ -207,16 +207,16 @@ Mutable sequence types
207207
+--------------------+--------------------------------------------------------+
208208
| ``del s[i:j]`` | same as ``s[i:j] = []`` |
209209
+--------------------+--------------------------------------------------------+
210-
| ``s[i:j:k] = t`` | the elements of *s* are replaced by those of *t*[#]_ |
210+
| ``s[i:j:k] = t`` | the elements of *s* are replaced by those of *t* [#]_ |
211211
+--------------------+--------------------------------------------------------+
212212
| ``del s[i:j:k]`` | removes the elements of ``s[i:j:k]`` from the list |
213213
+--------------------+--------------------------------------------------------+
214214
| ``s.append(x)`` | appends *x* to the end of the sequence; the same as |
215215
| | ``s[len(s):len(s)] = [x]`` |
216216
+--------------------+--------------------------------------------------------+
217-
| ``s.clear()`` | removes all items from *s* (``del s[:]``)[#3.3]_ |
217+
| ``s.clear()`` | removes all items from *s* (``del s[:]``)[#new]_ |
218218
+--------------------+--------------------------------------------------------+
219-
| ``s.copy()`` | creates a shallow copy of *s* (``s[:]``)[#3.3]_ |
219+
| ``s.copy()`` | creates a shallow copy of *s* (``s[:]``)[#new]_ |
220220
+--------------------+--------------------------------------------------------+
221221
| ``s.extend(t)`` | extends *s* with the contents of *t* |
222222
| ``s += t`` | |
@@ -233,7 +233,7 @@ Mutable sequence types
233233
+--------------------+--------------------------------------------------------+
234234

235235
.. [#] *t* must have the same length as the slice it is replacing
236-
.. [#3.3] new in Python version 3.3
236+
.. [#new] new in Python version 3.3
237237

238238
Text sequence type
239239
==================
@@ -316,8 +316,8 @@ Dictionaries can be created by several means:
316316

317317
- Use braces to denote the empty dictionary: ``{}``
318318
- Use a comma-separated list of ``key: value`` pairs with braces:
319-
``{'first_name': 'Serhii', 'last_name': 'Horodilov', 'age': 34}
320-
- Use a dict comprehension: `{x: x ** 2 for x in range(10)}``
319+
``{'first_name': 'Serhii', 'last_name': 'Horodilov', 'age': 34}``
320+
- Use a dict comprehension: ``{x: x ** 2 for x in range(10)}``
321321
- Use the type constructor: ``dict()``, ``dict([('key', 100)])``,
322322
``dict(key=100)``
323323

src/index.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
appx/software_list
2626
appx/code_edit
2727
appx/env_path
28+
appx/precedence
29+
appx/printf
2830

2931
.. rubric:: References
3032

src/refs.bib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ @misc{docs-python:operator-precedence
5858
url = {https://docs.python.org/3/reference/expressions.html#operator-precedence},
5959
}
6060

61-
@misc{docs-python:printf-formating,
61+
@misc{docs-python:printf-formatting,
6262
title = "{Python Documentation}",
6363
url = {https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting},
6464
}

0 commit comments

Comments
 (0)