Замыкания (Closures) в Python
Today we'll talk about something interesting: closures in Python. Essentially, a closure is an inner function that returns from an outer function and uses variables from the outer scope (which don't belong to it). The function essentially "closes over" and captures variables from the outer function. You might have seen this, for example, in decorators. Each closure object is independent; they don't intersect, and each has its own data. Closures are another step toward OOP, since here we have some state (data) hidden from prying eyes and can only be interacted with via a pre-written interface (function). Closures can be useful for avoiding the use of globals, as well as in other cases where it's important to prevent our data from being modified in an invalid way, and to ensure that data is accessed only through our logic. BUT(!), this data can also be accessed with some determination; it's important to understand that there is no complete data hiding. Join the channel's support team, it'll be interesting) ✔️Boosty https://boosty.to/python_russian/donate ✔️Yumani 410011506612886 Be the first everywhere and always, turn on notifications for new releases 🔔 Watch wherever it's convenient🤩 ✔️ https://vk.com/python_russian ✔️ https://rutube.ru/channel/24346352/ ✔️ https://dzen.ru/python_russian ✔️ / pythonrussian ✔️ https://t.me/python_russian #Python #PythonRussian #PyCharm

Первые шаги в ООП: класс, объект, self

Правила хорошей функции в Python

Список и кортеж

#44. Замыкания в Python | Python для начинающих

Python. Итераторы и генераторы

Рекурсия в Python

Магические методы в python. Dunder методы

Первый декоратор, разбираемся с написанием

Basics of Multithreading in Python

Python 3.14 — Новая эпоха производительности

Python для начинающих. Урок 20 | Замыкания и декораторы

Что нового в Python 3.9

Асинхронность, многопоточность, многопроцессность в python | Библиотека asyncio и асинхронный код

Простая функция-генератор. Для чего нужен yield

OOP: Encapsulation in python

Asyncio Basics

Декораторы в Python

Python OOP getters setters, decorator property, classmethod, staticmethod

Что за звери *args и **kwargs

