IT-новости про Python, которые стоит знать

Собрали в одном месте самые важные ссылки
консультируем про IT, Python

     28.02.2023       Выпуск 480 (27.02.2023 - 05.03.2023)       Статьи

Pytest tips and tricks

Набор советов по изучению и использованю pytest в тестировании

     27.02.2023       Выпуск 480 (27.02.2023 - 05.03.2023)       Статьи
     22.02.2023       Выпуск 479 (20.02.2023 - 26.02.2023)       Статьи
     21.02.2023       Выпуск 479 (20.02.2023 - 26.02.2023)       Статьи
     19.02.2023       Выпуск 478 (13.02.2023 - 19.02.2023)       Статьи
     18.02.2023       Выпуск 478 (13.02.2023 - 19.02.2023)       Статьи
     15.02.2023       Выпуск 478 (13.02.2023 - 19.02.2023)       Статьи
     10.02.2023       Выпуск 477 (06.02.2023 - 12.02.2023)       Статьи
     07.02.2023       Выпуск 477 (06.02.2023 - 12.02.2023)       Статьи

Three Python Trends in 2023

Python/Rust co-projects, web apps, and more typing

     04.02.2023       Выпуск 476 (30.01.2023 - 05.02.2023)       Статьи
     03.02.2023       Выпуск 476 (30.01.2023 - 05.02.2023)       Статьи
     02.02.2023       Выпуск 476 (30.01.2023 - 05.02.2023)       Статьи

Python⇒Speed: Don't bother trying to estimate Pandas memory usage

You have a file with data you want to process with Pandas, and you want to make sure you won’t run out of memory. How do you estimate memory usage given the file size? At times you may see estimates like these: “Have 5 to 10 times as much RAM as the size of your dataset”, or “several times the size of your dataset”, or 2×-3× the size of the dataset. All of these estimates can both under- and over-estimate memory usage, depending on the situation. In fact, I will go so far as to say that estimating memory usage is just not worth doing. In particular, this article will: Demonstrate the very broad range of memory usage you will see just from loading the data, before any processing is done. Cover alternative approaches to estimation: measurement and streaming.

     26.01.2023       Выпуск 475 (23.01.2023 - 29.01.2023)       Статьи

Быстрые виртуальные машины: ускорение исполнения кода

Как работают интерпретаторы и что такое "виртуальная машина" в этом контексте. И как ускорить исполнение.

     24.01.2023       Выпуск 475 (23.01.2023 - 29.01.2023)       Статьи

Fixing Circular Imports in Python with Protocol

The problem started when I had two classes that needed to talk to each other. Sometimes, classes need to talk to each other in both directions. The following example is made up, but mostly behaves like the original problem. Let’s say I have a Director and an Actor. The Director tells the Actor to do_action(). In order to do the action, the Actor needs to get_data() from the Director. Here’s our director.

     15.01.2023       Выпуск 473 (09.01.2023 - 15.01.2023)       Статьи

How to improve Python packaging, or why fourteen tools are at least twelve too many

There is an area of Python that many developers have problems with. This is an area that has seen many different solutions pop up over the years, with many different opinions, wars, and attempts to solve it. Many have complained about the packaging ecosystem and tools making their lives harder. Many beginners are confused about virtual environments. But does it have to be this way?

     12.01.2023       Выпуск 473 (09.01.2023 - 15.01.2023)       Статьи

Python⇒Speed: Why Polars uses less memory than Pandas

Как Polars обеспечивает "ленивую" работу с данными и экономит на памяти больше чем Pandas