"It is not a matter of fact, but it’s not worth it."
Guido van rossum
Python is a programming language in which it is pleasant to write and which is pleasant to read. We offer thirteen lectures of the fall course of the CS Center to look deep into the language and try to understand how to use all its features. Lectures are given by Sergey Lebedev , a developer at JetBrains and a teacher at the Computer Science Center.global and nonlocal . Functional programming, anonymous functions. Functions map , filter and zip . Generators lists, sets and dictionaries. A bit about PEP 8.functools .string module. Bytes Encodings Files and file objects. Methods of working with files. Module io .collections module: named tuples, counters, defaultdict , OrderedDict .__dict__ , __slots__ . Static methods and class methods. Properties, decorator @property. Inheritance, method overloading and super function. Class decorators. Magical methods.BaseException and Exception . Operators try...except..else..finally . Context managers and the contextlib module.__next__ + __iter__ and __getitem__ . Iterators and for loops, as well as in and not in operators. Generators, operator expression yield . Generators like: iterators, coroutines, context managers. Module itertools .import and from ... import statements. Packages. Relative and absolute imports. __init__ -facade. And again the import statement is a detour in depth.__new__ , class type and metaclasses. Inheritance of built-in types. abc and collections.abc modules.unittest module. Package py.test - much better. Testing properties and hypothesis package.timeit , cProfile and line_profiler . A little about NumPy. JIT and AOT compile Python code using the example of Numba and Cython.threading , queue and concurrent.futures . Using threads for parallel computing in Python. GIL. Parallelism and competitiveness. asyncio module Module multiprocessing .Source: https://habr.com/ru/post/280426/
All Articles