Zen of Python
Полный Дзен Пайтона в одном канале Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels Сайт: https://tprg.ru/site Регистрация в перечне РКН: https://tprg.ru/xZOL
Show more📈 Analytical overview of Telegram channel Zen of Python
Channel Zen of Python (@zen_of_python) in the Russian language segment is an active participant. Currently, the community unites 18 916 subscribers, ranking 6 799 in the Technologies & Applications category and 34 944 in the Russia region.
📊 Audience metrics and dynamics
Since its creation on невідомо, the project has demonstrated rapid growth, gathering an audience of 18 916 subscribers.
According to the latest data from 03 September, 2026, the channel demonstrates stable activity. Although there has been a change in the number of participants by -162 over the last 30 days and by -6 over the last 24 hours, overall reach remains high.
- Verification status: Not verified
- Engagement rate (ER): The average audience engagement rate is 10.32%. Within the first 24 hours after publication, content typically collects 6.08% reactions from the total number of subscribers.
- Post reach: On average, each post receives 1 953 views. Within the first day, a publication typically gains 1 151 views.
- Reactions and interaction: The audience actively supports content: the average number of reactions per post is 4.
- Thematic interests: Content is focused on key topics such as github, rust, pip, api, install.
📝 Description and content policy
The author describes the resource as a platform for expressing subjective opinions:
“Полный Дзен Пайтона в одном канале
Разместить рекламу: @tproger_sales_bot
Правила общения: https://tprg.ru/rules
Другие каналы: @tproger_channels
Сайт: https://tprg.ru/site
Регистрация в перечне РКН: https://tprg.ru/xZOL”
Thanks to the high frequency of updates (latest data received on 04 September, 2026), the channel maintains relevance and a high level of publication reach. Analytics show that the audience actively interacts with content, making it an important point of influence in the Technologies & Applications category.
None, True и False действуют как глобальные синглтоны (паттерны, ограничивающие возможность создания объектов данного класса одним экземпляром). Они совместно используются интерпретатором вместо того, чтобы каждый раз создавать их новые копии.
Каждая новая ссылка на такой синглтон побуждала интерпретатор инкрементировать счетчик ссылок, как с обычными объектами. Это приводило к проблемам с производительностью.
Что означает "бессмертие" (immortality) и как оно решает эту проблему, читайте в англоязычной статье на mail.python.org.
#фактыimport math
>>> sorted([5.0, math.nan, 10.0, 0.0])
... [5.0, nan, 0.0, 10.0]
>>> 3 < math.nan
... False
>>> 3 > math.nan
... False
>>> min(3, math.nan)
... 3
>>> min(math.nan, 3)
... nan
Будьте осторожны и используйте math.isnan() для проверки на равенство NaN.
#фактыsum([0.8] * 1_000)
# 799.9999999999887 вместо 800
Если вы хотите устранить это недоразумение, используйте math.fsum():
import math
math.fsum([.8] * 1_000)
# 800.0
#mathfrom yattag import Doc
doc, tag, text = Doc().tagtext()
with tag('div', id='photo-container'):
doc.stag('img', src='/salmon-plays-piano.jpg', klass="photo")
print(doc.getvalue())
В результате мы получаем самозакрывающиеся теги:
<div id="photo-container"><img src="/salmon-plays-piano.jpg" class="photo" /></div>
Профиль на PyPi
#htmlpip install -U itsdangerous
>>> from itsdangerous import URLSafeSerializer
>>> auth_s = URLSafeSerializer("secret key", "auth")
>>> token = auth_s.dumps({"id": 5, "name": "itsdangerous"})
>>>
>>> print(token)
...eyJpZCI6NSwibmFtZSI6Iml0c2Rhbmdlcm91cyJ9.6YP6T0Bфайлы = ["мой_проект"]
версия_python = 3.8
На данный момент почти все популярные инструменты так или иначе поддерживают pyproject.toml в качестве конфигурационного файла: mypy, pytest, cover, isort, bandit, tox и т. д. Единственное исключение — flake8.
До .toml многие инструменты использовали setup.cfg для той же цели, но этот формат имеет несколько недостатков: он плохо стандартизирован, и единственным поддерживаемым типом значений является строка.
#PEPimport sqlite3
# Подключимся к базе orders
conn = sqlite3.connect('orders')
cur = conn.cursor()
# Отобразим всю таблицу addons
cur.execute('SELECT * FROM addons')
cur.fetchone()
#SQL