и посмотреть медиа
NOP - Nuances of Programming
и посмотреть медиа
Channel about nuances of programming, IT humor and remote vacancies. Fresh insights for developers.
Channel about nuances of programming, IT humor and remote vacancies. Fresh insights for developers.
NOP::Nuances of Programming - channel with in-depth analysis of programming subtleties, humor and selections of remote vacancies. Useful content for developers of all levels in Telegram.
Ленивые импорты в Python 3.15 и линтер, который их расставит В Python 3.15a7 появились ленивые импорты по PEP 810: пишешь lazy import numpy. Модуль подгружается только при первом обращении к объекту. Для CLI это ощутимая экономия: вызов --help больше не тянет тяжёлые зависимости. Автор сделал инструмент uvx flake8-lazy --apply=list, который расставит ленивые импорты за тебя. Ленивым можно делать не всё: импорт в try/except ModuleNotFoundError сломается, ошибка переедет на первое использование. Ещё в альфе флаг lazy_imports=none отключает не тот синтаксис — обещают починить. 🔗 Подробнее @nuancesprog #Languages #Python
Открыть канал и посмотреть медиаOnly registered users can share their opinion.
Be the first to share your impression of this resource!