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

Собрали в одном месте самые важные ссылки
читайте нас в Twitter

     05.07.2023       Выпуск 498 (03.07.2023 - 09.07.2023)       Статьи

CLI Tools Hidden in the Python Standard Library

There are several modules in Python that are directly callable from the command line, including the ability to gzip and pretty print JSON. This article introduces you to what is available and how Simon discovered them.

     04.07.2023       Выпуск 498 (03.07.2023 - 09.07.2023)       Статьи
     04.07.2023       Выпуск 498 (03.07.2023 - 09.07.2023)       Статьи
     28.06.2023       Выпуск 497 (26.06.2023 - 02.07.2023)       Статьи

Python⇒Speed: When NumPy is too slow

If you’re doing numeric calculations, NumPy is a lot faster than than plain Python—but sometimes that’s not enough. What should you do when your NumPy-based code is too slow? Your first thought might be parallelism, but that should probably be the last thing you consider. There are many speedups you can do before parallelism becomes helpful, from algorithmic improvements to working around NumPy’s architectural limitations. Let’s see why NumPy can be slow, and then some solutions to help speed up your code even more.

     28.06.2023       Выпуск 497 (26.06.2023 - 02.07.2023)       Статьи

Bullet Proofing Django Models

Рекомендаци по составлению моделей в DJango

     27.06.2023       Выпуск 497 (26.06.2023 - 02.07.2023)       Статьи
     27.06.2023       Выпуск 497 (26.06.2023 - 02.07.2023)       Статьи

How to Flatten a List of Lists in Python

Или посмотреть на funcy библиотеку

     23.06.2023       Выпуск 496 (19.06.2023 - 25.06.2023)       Статьи

Building Search DSLs with Django

What happens when there are too many fields for a UI to search on? Search DSLs can give a user more granular access to searching without exposing an overly complicated interface.

     21.06.2023       Выпуск 496 (19.06.2023 - 25.06.2023)       Статьи

Django Views: The Right Way

An opinionated guide on how to write views in Django by one of the core Django devs.

     21.06.2023       Выпуск 496 (19.06.2023 - 25.06.2023)       Статьи

Dependency Tracking for Python Function Calls

Tracking the code and data accessed by a function call can be used to draw dependency graphs, for debugging and profiling, and for cache invalidation. This article shows you a variety ways of doing it, as well as some initial ideas that don’t work very well.

     21.06.2023       Выпуск 496 (19.06.2023 - 25.06.2023)       Статьи

Faster Python 3.13 Plan

This brief outline highlights the plan for the faster CPython project for the 3.13 release. Includes PEP 669, PEP 554, improved memory management, and more.

     20.06.2023       Выпуск 496 (19.06.2023 - 25.06.2023)       Статьи

Python's raise: Effectively Raising Exceptions in Your Code

In this tutorial, you'll learn how to raise exceptions in Python, which will improve your ability to efficiently handle errors and exceptional situations in your code. This way, you'll write more reliable, robust, and maintainable code.

     16.06.2023       Выпуск 495 (12.06.2023 - 18.06.2023)       Статьи
     16.06.2023       Выпуск 495 (12.06.2023 - 18.06.2023)       Статьи
     16.06.2023       Выпуск 495 (12.06.2023 - 18.06.2023)       Статьи

This is valid Python syntax

Неочевидные конструкции в языке

     14.06.2023       Выпуск 495 (12.06.2023 - 18.06.2023)       Статьи
     14.06.2023       Выпуск 495 (12.06.2023 - 18.06.2023)       Статьи

Python and the Legend of Zelda

The Game Boy Color version of Legend of Zelda: Oracle of Ages contains a grid-based puzzle. Gaz writes about creating a brute force program to solve the challenge using Python.

     12.06.2023       Выпуск 495 (12.06.2023 - 18.06.2023)       Статьи
     07.06.2023       Выпуск 494 (05.06.2023 - 11.06.2023)       Статьи

Makefile Tricks for Python Projects

Richard likes using Makefiles. They work great both as simple task runners as well as build systems for medium-size projects. This is his starter template for Python projects.