-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdvancedPythonApril2020.txt
More file actions
68 lines (60 loc) · 1.69 KB
/
Copy pathAdvancedPythonApril2020.txt
File metadata and controls
68 lines (60 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Python Advanced
22-25 Mar 2021
Toby Dussek
9:30 start
11:00 coffee
12:20 lunch
3:00 tea
4:30 end
Code repository is here: https://github.com/onionmccabbage/advPythonMar2021
> please fill in profile form
Monday
> intro
> what do you currently know
> what do you want to know
> classes - properties
> functional programming: map filter and reduce
> labs
> comprehensions
> generators
> yield, next and custom generators
Question:
> we can subsume the extra newline char when printing lines from a read-in file
Tuesday
> iterators __iter__
> closures
> functional programming: parameters
> context manager
> after lunch lab exercise (inc optional material)
- ask questions, help each other, share code (screen-share)
> begin processing text xml json
> json.loads() takes JSON and returns Python structure
> json.dumps() takes Python and returns JSON
> pickle ...
> persisting files
> databases
see https://wiki.python.org/moin/DatabaseProgramming
Wednesday
> networking: url requests (more than just get)
> introduce some end-points
> networking server/client
> what it the point of __slots__
> http 80 or https 443
req is http and the end-point is https
> named tuple
> zip
> testing: doctest, unittest, mock
see https://docs.python.org/3/library/doctest.html
> after lunch lab exercise
- pytest
Thursday
- brief look at the beyond advanced outline
- revisit @property and __ name mangling (after 9:45)
- a bit more pyttest (with zip and named tuple)
- profiling, briefly debug
- logging
- multi threading, performance
- deque, defaultdict etc
- after lunch lab exercise
- all my code available online
- feedback forms: internal Ericsson and also for ITAG