Skip to content

Commit 682bb91

Browse files
committed
Update documentation
1 parent 8623135 commit 682bb91

File tree

10 files changed

+18
-18
lines changed

10 files changed

+18
-18
lines changed
File renamed without changes.
File renamed without changes.

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Python course
22

3-
## Chapter 1.1. Native datatypes
3+
## Chapter 1. Native datatypes
44

55
### Module usage
66

@@ -19,6 +19,14 @@
1919
* unicode string
2020
* `r""` and `f""` forms
2121

22+
### Files
23+
24+
* `open` and `with` statement
25+
* `read()` - read all content
26+
* `readlines()` - read all lines
27+
28+
### Chapter 2. Basic Collections
29+
2230
### List
2331

2432
* mutable, single types elements
@@ -37,15 +45,7 @@
3745
* `keys()` return set
3846
* `values()` and `items()` return list
3947

40-
### Files
41-
42-
* `open` and `with` statement
43-
* `read()` - read all content
44-
* `readlines()` - read all lines
45-
46-
### Comprehensions
47-
48-
#### List
48+
#### List Comprehensions
4949

5050
* list comprehension provides a compact way of mapping a list into another list
5151
* filesystem comprehension example
@@ -57,12 +57,12 @@
5757
* list comprehension in Python works by loading the entire output list into memory
5858
* it’s often helpful to use a generator instead of a list comprehension in Python
5959

60-
#### Dict
60+
#### Dict Comprehensions
6161

6262
* dictionary comprehension similar to list comprehension, but it operates with key-value pairs
6363
* swapping the keys and values of a dictionary example (value also must be hashable and unique)
6464

65-
## Chapter 2. Functions
65+
## Chapter 3. Functions
6666

6767
### Function as object
6868

@@ -124,7 +124,7 @@
124124
* closures
125125
* currying
126126

127-
## Chapter 3. Decorators
127+
## Chapter 4. Decorators
128128

129129
* definition of decorator: a callable high-order function that takes a callable as input and returns another callable
130130
* replacing __`name`__, __`doc`__, and __`module`__ of the decorator with respected values of the decorated function
@@ -137,7 +137,7 @@
137137
* decorator that prevent calling function twice with the same arguments
138138
* using decorators for debugging, logging and profiling
139139

140-
## Chapter 4. Input/Output
140+
## Chapter 5. Input/Output
141141

142142
### Encoding
143143

@@ -172,15 +172,15 @@
172172
* object string representation with `__repr__()` and `__str__()` methods
173173
* string case conversion with `upper()`, `lower()`, `capitalize()`, `title()`, `swapcase()` methods
174174

175-
## Chapter 5. Collections
175+
## Chapter 6. Additional Collections
176176

177177
* thread-safe queues: `queue.Queue`, `queue.LifoQueue`
178178
* deque: `collections.deque`
179179
* priority queue: `heapq`, `queue.PriorityQueue`
180180
* tuples: `collections.namedtuple`, `collections.Counter`
181181
* dictionaries: `collections.defaultdict`, `collections.OrderedDict`, `collections.ChainMap`
182182

183-
## Chapter 6. Classes
183+
## Chapter 7. Classes
184184

185185
### Class Definition
186186

@@ -269,7 +269,7 @@
269269
* async callable: `__acall__`
270270

271271

272-
## Chapter 7. Exceptions
272+
## Chapter 8. Exceptions
273273

274274
### Exception Theory
275275

@@ -377,6 +377,6 @@
377377
* the `pdb` module provides a built-in debugger for tracing errors and debugging code interactively
378378
* `pdb.set_trace()` enters debugger interactive mode
379379

380-
## Chapter 8. Iterators
380+
## Chapter 9. Iterators
381381

382382
TBC

0 commit comments

Comments
 (0)