Advanced Python functions
by
Reuven M. Lerner
Login
Buy for $150
07 Defaults
Advanced Python functions
/
Section 1: Function objects
This content is locked.
You'll need to
purchase
or
sign in
to view this content.
Advanced Python functions
Already know how to define and call Python functions? Go deeper, from bytecodes to closures, and truly master them.
Buy for $150
Learn more
Already enrolled?
Sign in to continue learning.
Table of contents
Advanced Python functions
by
Reuven M. Lerner
ui-24px-outline-1_lock
Contents
Contents
Draft
01 Welcome
Draft
01 Welcome
ui-24px-outline-1_lock
Section 1: Function objects
Section 1: Function objects
Draft
Section 1 — Function objects.ipynb
Draft
Section 1 — Function objects.ipynb
Draft
02 Introduction to function objects
Draft
02 Introduction to function objects
Draft
03 Function objects and bytecode
Draft
03 Function objects and bytecode
Draft
04 Arguments and local variables
Draft
04 Arguments and local variables
Draft
05 Disassembling our function
Draft
05 Disassembling our function
Draft
06 More arguments
Draft
06 More arguments
Draft
07 Defaults
Draft
07 Defaults
Draft
08 Disassembling defaults
Draft
08 Disassembling defaults
Draft
09 *args
Draft
09 *args
Draft
10 keyword-only parameters
Draft
10 keyword-only parameters
Draft
11 Exercises 1
Draft
11 Exercises 1
Draft
exercises-1.txt
Draft
exercises-1.txt
Draft
12 Exercise 1 solutions
Draft
12 Exercise 1 solutions
Draft
13 **kwargs
Draft
13 **kwargs
Draft
14 When to use **kwargs
Draft
14 When to use **kwargs
Draft
15 Unpacking *iterables and **dicts
Draft
15 Unpacking *iterables and **dicts
Draft
16 Writing function wrappers
Draft
16 Writing function wrappers
Draft
17 Exercises 2
Draft
17 Exercises 2
Draft
exercises-2.txt
Draft
exercises-2.txt
Draft
18 Exercise 2 solutions
Draft
18 Exercise 2 solutions
ui-24px-outline-1_lock
Section 2: Scoping and nested functions
Section 2: Scoping and nested functions
Draft
Section 2 — Scoping and nested functions.ipynb
Draft
Section 2 — Scoping and nested functions.ipynb
Draft
19 Exploring __code__
Draft
19 Exploring __code__
Draft
20 Scoping — LEGB
Draft
20 Scoping — LEGB
Draft
21 Inner functions.mp4
Draft
21 Inner functions.mp4
Draft
22 Visualizing inner functions
Draft
22 Visualizing inner functions
Draft
23 Enclosing variables
Draft
23 Enclosing variables
Draft
24 Using enclosing variables
Draft
24 Using enclosing variables
Draft
25 nonlocal
Draft
25 nonlocal
Draft
26 __code__ and enclosing scope
Draft
26 __code__ and enclosing scope
Draft
27 Multiple nestings
Draft
27 Multiple nestings
Draft
28 Use case 1 — Semi-static variables
Draft
28 Use case 1 — Semi-static variables
Draft
29 Use case 2 — Function factories
Draft
29 Use case 2 — Function factories
Draft
30 Exercises 3
Draft
30 Exercises 3
Draft
exercises-3.txt
Draft
exercises-3.txt
Draft
31 Exercise 3 solutions
Draft
31 Exercise 3 solutions
Draft
32 Intro to stack frames
Draft
32 Intro to stack frames
Draft
33 Functions vs. frames
Draft
33 Functions vs. frames
Draft
34 The "inspect" module
Draft
34 The "inspect" module
Draft
35 Inspecting stack frames
Draft
35 Inspecting stack frames
Draft
36 Type annotations
Draft
36 Type annotations
Draft
37 Conclusion
Draft
37 Conclusion
Welcome!
Enter your info below to login.
Your email
Your password
Login
Forgot your password?