Python Dev
-
Paolo Melchiorre - Database generated columns ⁽¹⁾: Django & SQLite
www.paulox.net Paolo Melchiorre - Database generated columns ⁽¹⁾: Django & SQLiteAn introduction to database generated columns, using SQLite and the new GeneratedField added in Django 5.0.
- eddieantonio.ca {n} times faster than C …with Python
I was reading Owen Shepherd’s post “{n} times faster than C”, which explores how to hand-tune x86-64 assembly to make a certain problem faster (see below). Originally, this inspired me to write a short introduction to using Rust’s portable SIMD to manually speed up problems like this. I rewrote the ...
- www.dataroc.ca The most performant timestamp functions in Python
We explore different ways of getting the current timestamp in Python and profile their respective execution times.
Is time.time() the fastest? What if you need a datetime object: datetime.now(), datetime.utcnow()? Let's find out!
- stackabuse.com Guide to Stacks in Python
While some data structures are versatile and can be used in a wide range of applications, others are specialized and designed to handle specific problems. One...
- pybit.es 6 Cool Things You Can Do With The Functools Module - Pybites
In this article let's look at the functools Standard Library module and 6 cool things you can do with it (be warned, a lot of decorators are coming your way!
- realpython.com How to Use Type Hints for Multiple Return Types in Python – Real Python
In this tutorial, you'll learn to specify multiple return types using type hints in Python. You'll cover working with one or several pieces of data, defining type aliases, and type checking with a third-party static type checker tool.
- safjan.com Python Expertise Level - Self-Assessment
Sometimes you need to assess your own or candidate's level of expertise in Python programming. I have created some statements that roughly corresponds to the various level of expertise. Note that knowing programming language techniques contributes to expertise but does not make …
- death.andgravity.com Struggling to structure code in larger programs? Great resources a beginner might not find so easily
Are you having trouble making the modules work together in a larger project? Have you tried looking at popular projects as models, but were put off by their size and scope, or found it hard to see why they did the things they did? Resources about this do exist, but they're scattered all over, and mi...
- www.techbeamers.com Higher Order Functions in Python
Higher-order functions in Python take functions as arguments, or return as results, making code more readable and reusable.
- www.bitecode.dev The easy way to concurrency and parallelism with Python stdlib
Because life doesn't have to be hard all the time
- realpython.com Bypassing the GIL for Parallel Processing in Python – Real Python
In this tutorial, you'll take a deep dive into parallel processing in Python. You'll learn about a few traditional and several novel ways of sidestepping the global interpreter lock (GIL) to achieve genuine shared-memory parallelism of your CPU-bound tasks.
- adamj.eu Introducing flake8-logging - Adam Johnson
The Python standard library’s logging module is a go-to for adding observability to applications. Many tools also integrated with it or enhance its capabilities, such as structlog and Sentry.
- florian-dahlitz.de Introduction To Python's Functools Module - Florian Dahlitz
Introducing Python's functools functions using real world examples.
- stackabuse.com The 'b' Prefix in Python String Literals
In Python, you may have come across a string literal prefixed with the 'b' character and wondered what it means. This Byte aims to shed light on this feature o...
- stackabuse.com Hidden Features of Python
Python is a powerful programming language that's easy to learn and fun to play with. But beyond the basics, there are plenty of hidden features and tricks that...
- realpython.com Click and Python: Build Extensible and Composable CLI Apps – Real Python
In this tutorial, you'll learn how to use the Click library to build robust, extensible, and user-friendly command-line interfaces (CLI) for your Python automation and tooling scripts.
- mathspp.com Usages of underscore | Pydon't 🐍
The purpose of this Pydon't is to show you what underscores are used for in Python, and to show you how to write more idiomatic code with them.
-
- realpython.com What Are Python Asterisk and Slash Special Parameters For? – Real Python
In this tutorial, you'll learn how to use the Python asterisk and slash special parameters in function definitions. With these symbols, you can define whether your functions will accept positional or keyword arguments.
- www.bitecode.dev Asyncio, twisted, tornado, gevent walk into a bar...
... they pay, they leave, they drink, they order.
>You have to understand that async programming is hard, and no matter how good the tooling is, it's going to make your code more difficult to manage. It has a high price.
- www.nathom.dev Not-so-casual Performance Optimization in Python
My previous post (which was honestly created to test out the theme for this site), provided a few code snippets that computed $N$ terms of the sum of inverse squares. I wrote the code in my 4 favorite languages—Python, C, Rust, and Haskell—but when I ran the Python code, it was embarrassingly slow. ...
- djangocentral.com How to Use Subquery() in Django With Practical Examples
In the realm of web development, Django stands as a powerful and versatile framework for building robust applications. One of the key aspects of developing e
- realpython.com Python's list Data Type: A Deep Dive With Examples – Real Python
In this tutorial, you'll dive deep into Python's lists. You'll learn how to create them, update their content, populate and grow them, and more. Along the way, you'll code practical examples that will help you strengthen your skills with this fundamental data type in Python.
- pybit.es Avoiding Silent Failures In Python: Best Practices For Error Handling - PyBites
The Zen of Python famously states, "Errors should never pass silently." This principle emphasizes the importance of addressing issues head-on rather than
- realpython.com Profiling in Python: How to Find Performance Bottlenecks – Real Python
In this tutorial, you'll learn how to profile your Python programs using numerous tools available in the standard library, third-party libraries, as well as a powerful tool foreign to Python. Along the way, you'll learn what profiling is and cover a few related concepts.
- til.simonwillison.net CLI tools hidden in the Python standard library
Seth Michael Larson pointed out that the Python gzip module can be used as a CLI tool like this:
-
Python GUI Tutorials
www.pythonguis.com Python GUIs — Create GUI applications with Python and QtLearn how to Create Python GUIs with Python & PyQt.