Потребление памяти при сортировке в Python Сначала сравним, сколько памяти потребляет каждая из функций. Для отслеживания максимального использования памяти, используем встроенный модуль resource. Так как данный модуль позволяет отслеживать использование памяти для одного потока, мы запускаем сортировку списка в отдельном потоке. Также можно использовать FunctionSniffingClass, включенный в репозитории. 🔗 Python tri…

Channel
Python tricks | Хитрости Питона
@python_tricks
On this record: Growth · Engagement · Advertising · Posts · Telegram's recommendations · Cite this entry
5,125subscribers
-23 since we began measuring on 7 August 2026
Risers and fallers across the register · movement among entries of 3,162–10,000.
Register entry
| Telegram ID | -1001518419220 |
|---|---|
| Type | Channel |
| Username | @python_tricks |
| Created | Between 1 August 2021 and 28 February 2023— estimated from Telegram’s id allocation, not measured. How this range is calculated. |
| First recorded | 7 August 2026 |
| Last confirmed live | 20 August 2026 |
| Measurements held | 7 |
| Confirmed unchanged | 1 time, most recently 20 August 2026 |
| On Telegram | t.me/python_tricks |
Growth
| Measured (UTC) | Subscribers | Change |
|---|---|---|
| 20 Aug 2026, 04:54 | 5,125 | -7 |
| 17 Aug 2026, 11:04 | 5,132 | -4 |
| 13 Aug 2026, 13:16 | 5,136 | -4 |
| 10 Aug 2026, 18:31 | 5,140 | -9 |
| 7 Aug 2026, 09:30 | 5,149 | +1 |
| 7 Aug 2026, 02:15 | 5,148 | no change |
| 7 Aug 2026, 02:09 | 5,148 | first reading |
Engagement
20 posts held, back to 8 October 2025 — the reader has not yet reached the start of this channel’s public history, so older posts may sit further back, unread. Read across 8 pagesof Telegram’s post history, 20 posts per page.
Nothing published in the last 30 days. ERR and ER are rolling 30-day measures, so there is nothing to compute — we hold 20 posts for this entry, the most recent from 25 November 2025. An engagement rate over an empty window would be a number about nothing.
Advertising
- Ad load
- 5.00%
- 1 of 20 posts carry an ad marker
- Regulatory tokens
- 1
- posts carrying an erid · 1 distinct token
- Median views · ads
- 1,940
- over 1 measured post
- Median views · rest
- 764
- over 19 measured posts
An ad marker, not a judgement about a post. A post is counted here because it carries one of two explicit markings: an erid token, which Russian law has required on paid placements since 2022 and which is issued against a specific advertising contract, or a #реклама / #ad hashtag in the body, which is the channel declaring it itself. The first is documentary; the second is a self-declaration and is weaker. No classifier reads the text and decides — nothing on this site guesses that a post is an advertisement.
This is a floor, and it can only ever be a floor.A channel that runs paid placements without marking them produces no marker for us to count, and an unmarked ad is indistinguishable from an ordinary post on the public surface. The ad load above therefore means “the share of posts that declared themselves”, never “the share of posts that were paid for”. A low figure is not evidence of a channel that runs few ads.
Both figures are medians, and no ratio between them is published. Each is a view reading that actually occurred on a post, picked by percentile_disc rather than averaged, so one viral post cannot move it and no interpolated value is invented between two readings. The sample on one side is under five posts, which is too thin to compare. The two figures are shown side by side with the count behind each, and deliberately not divided into a headline like “ads get x% fewer views” — an arithmetic that is easy to print and, at this sample size, means nothing.
| erid | Posts | First seen | Last seen |
|---|---|---|---|
| 2VtzqvMmJ1w | 1 | 25 November 2025 | 25 November 2025 |
A token repeated across several posts is one advertising contract placed more than once, which is what the identifier is for. The strings are reproduced exactly as they appeared in the post or in its click-through URL and are not validated against any registry — we record the marker a channel published, and whether it resolves to a real contract is a question for the register that issued it.
Measured over the 20 most recent posts we hold, published 8 October 2025 to 25 November 2025. Views are the latest single reading held for each post, and any reading at or above 1,000 is rounded by Telegram to three significant figures.
Recent posts
🔴 Реальный собес на Python от ТехЛида с опытом работы в Авито и Яндексе в прямом эфире 25 ноября (уже сегодня!) в 19:00 по мск приходи на прямой эфир с реальным собеседованием на Middle разработчика. Почему точно нужно прийти: 📂 Савва Демиденко, ТехЛид с опытом в Яндексе и Авито, будет задавать реальные вопросы и задачи разработчику-добровольцу 📂 Савва будет комментировать каждый ответ респондента, чтобы дать понят…
Резюме статьи Gensim — отличный пакет Python для большого количества задач нейролингвистического программирования (НЛП). Он включает в себя довольно надежную функцию резюмирования, которой достаточно легко пользоваться. Она реализует разновидность алгоритма TextRank. Для использования этой функции нам нужна лишь одна строчка кода 🔗 Python tricks
Выход пользователя из профиля на Django Пользователь успешно прошел процедуру аутентификации, но… как теперь выйти? Можно было бы зайти в админку и выйти оттуда, однако есть способ получше. Добавим ссылку выхода, которая будет перенаправлять человека на домашнюю страницу. Благодаря системе аутентификации Django, добиться такого сценария проще простого. В файле шаблона base.html добавим ссылку {% url 'logout' %} для…
collections.MutableMapping Collections.MutableMapping — это интерфейс, который представляет изменяемое отображение (словарь). Он наследуется от интерфейса Mapping и добавляет методы для изменения отображения, такие как __setitem__, __delitem__ и clear. Основное преимущество в использовании MutableMapping — это возможность передавать экземпляры такого класса в любое API, ожидающее словарь. Например, во многих функци…
collections.Counter Collections.Counter — это класс, предназначенный для подсчета хешей (hashable объектов). Он позволяет удобно и эффективно подсчитывать вхождения элементов в какой-либо последовательности. Основное отличие Counter от обычного словаря в том, что он не выбрасывает исключение, если ключ не существует, а просто создает новый ключ со значением 0. Это упрощает подсчет элементов. Counter может принимать…
Метод isspace() Метод isspace() проверяет, является ли символ пробельным. Пробельными символами считаются: — Пробел (' '). — Табуляция ('\t'). — Перевод строки ('\n'). — Перевод каретки ('\r'). — Прочие unicode символы, определяемые как пробелы. isspace() возвращает True, если символ пробельный, и False в противном случае. Этот метод удобно использовать для проверки и обработки строк. 🔗 Python tricks
Библиотека xarray xarray предназначена для работы с многомерными данными и массивами. Она позволяет удобно хранить и обрабатывать данные с метаданными, такими как координаты, время и другие измерения. Xarray часто используется в научных вычислениях и анализе данных, особенно при работе с геопространственными данными, временными рядами, метеоданными и другой многомерной информацией. Основные преимущества xarray — эт…
Библиотека igraph igraph предназначена для работы с графами и сетями. Она позволяет строить, анализировать и визуализировать графы. Igraph часто используется при анализе социальных сетей, изучении структуры больших сетей (например, ссылок в интернете), в биоинформатике для анализа взаимодействий белков и других задач, связанных с теорией графов. Основные возможности igraph — генерация случайных и классических граф…
Метод Counter.elements() Метод Counter.elements() возвращает итератор по элементам в словаре Counter. Этот метод позволяет эффективно перебрать элементы словаря Counter без создания копии. Как видно из примера, метод elements() возвращает итератор по элементам словаря Counter в порядке их добавления. Это позволяет эффективно обрабатывать элементы, не создавая промежуточные структуры данных. 🔗 Python tricks
Использование f-строк для форматирования строк С версии Python 3.6 в языке появились так называемые f-строки (или формируемые строки), которые позволяют более удобным и читаемым образом форматировать строки. Это особенно полезно, когда вам нужно вставить переменные или выражения прямо в строку. Использование f-строк упрощает процесс создания строк с динамическими данными и делает код более интуитивно понятным. 🔗 P…
Использование zip для объединения списков Функция zip в Python позволяет объединять несколько списков в один, создавая пары элементов. Это особенно полезно, когда вы хотите обрабатывать данные из нескольких списков одновременно, например, при работе с данными, где у вас есть связанные списки (например, имена и возраст). Использование zip позволяет легко и эффективно объединять данные, делая код более понятным и лак…
Showing the 12 most recent of 20 posts we hold for @python_tricks. View and reaction counts are the latest single reading for each post, not a live figure, and a recent post is still accumulating both. A view count marked ≈ was rounded by Telegram before we ever saw it — t.me prints views in full below 1,000 and to three significant figures above, so ≈1,200,000 means somewhere between 1,150,000 and 1,249,999. Unmarked counts are exact. Text is reproduced from the public post preview and truncated for length.
Appears in Telegram’s recommendations for other channels
The reverse of the list above, and a different kind of signal. This does not require this channel to have ever been asked about directly — each row below is a channel we DID ask Telegram about, whose Telegram-generated list happened to include this one. A channel can appear here with an empty list above it, because being named by someone else’s query is independent of having been queried itself.
@trendo · 69,017
Telegram ranks this channel #26 of 90 here — alongside 89 others — read 20 August 2026
@python2day · 63,879
Telegram ranks this channel #88 of 91 here — alongside 90 others — read 21 August 2026
This channel appears in 2 seed channels' Telegram-generated recommendation lists in total. Each is Telegram’s list for THAT channel, not this one — see how this is measured.
Cite this entry
A live page changes as we take new readings, so a citation should name the measurement it is based on, not just the URL. The line below cites the subscriber count as measured 20 August 2026 — this entry's latest reading, not the date you are reading this.
“Python tricks | Хитрости Питона” (@python_tricks), 5,125 subscribers as measured 20 August 2026. Telegram Register, tgregister.com/channel/python_tricks.
Full measurement history, CC BY 4.0. Every reading this register holds for this entry, not just the latest one, as a dated, downloadable record: CSV · JSON. Free to use with attribution to tgregister.com. Each file carries its own generation timestamp, which is the figure to cite for exactly when the data was retrieved.