Module itertools overview, Asyncio gather() Handle Exceptions and more
Top 10 must-know Django code tips to level up your skills, Python 3.13 Release Candidate 1 is here with some more interesting news, articles, packages and projects
News
Django 5.1 release candidate 1 released
Python 3.13 Release Candidate 1 is here!
That means if you maintain a library, testing its compatibility with the first release candidate form of Python 3.13 is important!
Nuitka 2.4 released
Articles
Module itertools overview
The itertools module is another fantastic module similar to functools. It offers many tools that are useful in various scenarios. In this article, Rodrigo showed their usefulness with excellent examples.
# Rodrigo
Top 10 must-know Django code tips to level up your skills
Django is a great framework that comes with many built-in features to simplify developers' lives. In this article, Adrien Van Thong shared several smaller tips that can make your daily coding tasks easier.
# Adrien Van Thong
Asyncio gather() Handle Exceptions
asyncio.gather() lets us group multiple awaitables, but handling exceptions in one of the awaitables can be cumbersome using the usual try-except approach. In this article, Jason Brownlee explained how to handle this more effectively with the return_exceptions argument for asyncio.gather(). Setting the return_exceptions argument to True will capture any unhandled exceptions and return them as values, allowing all other tasks in the group to be completed.
# Jason Brownlee
Developing GraphQL APIs in Django with Strawberry
GraphQL provides flexibility and efficiency for data retrieval, while Django is a comprehensive Python framework. If you think combining GraphQL and Django would be a great idea, you should check out this article by Oluwole Majiyagbe. He used the Strawberry package for the GraphQL implementation.
# Oluwole Majiyagbe
Beyond Hypermodern: Python is easy now
Python tooling is getting better and better day by day. As a result, setting up a new Python project has become easier and more aligned with best practices. In this article, Chris Arderne shared how to set up a modern Python project using tools like Rye, Ruff, and Pyright for formatting, linting, and type checking.
# Chris Arderne
Configuring Like a Pro! A Comprehensive Guide to Python's configparser
configparser is one of Python's useful built-in modules. It allows us to handle configuration files (.ini) in a structured and readable way. In this article, CyCoderX explained how to use configparser, write configuration files, manage different data types and defaults/fallbacks.
# CyCoderX
10 Important Python Interview Questions (for 2024)
Ishaan Gupta took 10 topics and shared interview questions and answers with code examples. He covered Decorator, The Difference between list, tuple, and dictionary, Exceptions, Built-in data types, Lambda function, global and nonlocal keywords, Type conversion, with statement, Concept of mutability and Namespaces
# Ishaan Gupta
Interesting Packages and Projects to explore
FastUI - FastUI is a new way to build web application user interfaces defined by declarative Python code.
Panel - The powerful data exploration & web app framework for Python
Beartype - Unbearably fast near-real-time hybrid runtime-static type-checking in pure Python.
Formation Studio - Tools for building gorgeous graphical user interfaces in Tkinter
gevent - Coroutine-based concurrency library for Python
About Upcoming Python Events
Python Atlanta Meetup
August 8, 2024
Python Nordeste 2024
August 9 – 11, 2024
Building Python Communities – South West Region
August 10, 2024