This is repo for python core studying. It can be used individually, as group or for mentorship.
- Builtin datatypes
- mutable vs immutable - difference, examples
- Assignment
- copy, slice, deepcopy and their comparison.
- collections module (deque, namedtuple, Counter)
- Integer and string caching QUIZ
- Hashable QUIZ
04_internal_structures_of_data_types.ipynb
- list
- collections.deque
- dict
- set
- Evaluation priority
- What do they return
- Lazy evaluation
- Scope definition
- What is the border of scope
- How many scopes
- LEGB order
- Relative scope (the same variable could be in several scopes: global, local)
- locals(), globals()
- How python clarifies that variable is locacl or global in scope of function
- Function arguments
- Function arguments types (args, kwargs)
- Arguments order
- Unpacking
- Passing mutable/immutable argument
- Mutable/immutable variable as default variable value like
def func(some_list=[])
- functools.partial
- Lambda functions
- Lambda late binding
- Type hinting
todo
- iterable object, iterator
- ...
- What is it, advantages, popular examples
- How to implement as class with
__enter__
,__exit__
- How to implement with
@contextlib.contextmanager
- What is decorator
- How to use decorator without
@
syntax? - Decorator examples
- Parametrized decorator
- Flask-app-like decorator example
- Where you can apply decorator?
todo
- Reference counter
sys.getrefcount
- Cyclic reference problem
- Garbage collector
gc
module- Disabling garbage collection
__del__
problem- weakrefs