Python Does What?!: Enums make good singletons
It's simple and common to allocate a marker object to represent missing or null data.MISSING = object() There's a slightly more verbose construct with some advantages:import enum class...
View ArticleJulien Tayon: Revisiting hello world : coding print from scratch part I
The « hello world » example is about standing on the shoulders of the giant and learn how to use function as tools. Most coders will use print during their whole life without actually coding it....
View ArticleSeth Michael Larson: Python and Sigstore
Python and Sigstore About• Blog• Cool URLsPython and SigstorePublished 2024-10-21 by Seth Larson Reading time: minutes This critical role would not be possible without funding from the Alpha-Omega...
View ArticleZato Blog: HL7 FHIR Security with Basic Auth, OAuth and SSL/TLS
HL7 FHIR Security with Basic Auth, OAuth and SSL/TLS 2024-10-21, by Dariusz Suchojad HL7 FHIR SecurityPreliminary reading: HL7 FHIR Integrations in PythonFHIR servers offer their APIs using REST, which...
View ArticleJulien Tayon: Hello world part II : actually recoding print
In part I we explored the pre-requisite in order to code print : having a grasp on the framebuffer. Here, we are gonna deep inside one of the most overlooked object oriented abastraction : a file and...
View ArticleReal Python: Python's property(): Add Managed Attributes to Your Classes
With Python’s property(), you can create managed attributes in your classes. You can use managed attributes when you need to modify an attribute’s internal implementation and don’t want to change the...
View ArticlePython Bytes: #406 What's on Django TV tonight?
<strong>Topics covered in this episode:</strong><br> <ul> <li><a href="https://opensourcepledge.com?featured_on=pythonbytes"><strong>Open Source...
View ArticleJulien Tayon: Tune your guitar with python
Today's exercice is just about turning a very nice example of the python soundevice module into something that works for me© to help me tune my bass. Long story short, I suck at tuning my instrument...
View ArticlePython Anywhere: Improving PythonAnywhere's File Storage System
PythonAnywhere has been around for over 10 years, and as our platform continues to grow with thousands of users, we’re committed to keeping it in top shape. Part of this involves upgrading some of the...
View ArticleReal Python: Quiz: Pydantic: Simplifying Data Validation in Python
In this quiz, you’ll test your understanding of Pydantic. Pydantic is a powerful data validation library for Python. You can also use a related library, pydantic-settings, for settings management.By...
View ArticleReal Python: Understanding Python's Global Interpreter Lock (GIL)
The Python Global Interpreter Lock or GIL, in simple words, is a mutex (or a lock) that allows only one thread to hold the control of the Python interpreter. This means that only one thread can be in a...
View ArticlePyCoder’s Weekly: Issue #652 (Oct. 22, 2024)
#652 – OCTOBER 22, 2024View in Browser »Structural Pattern Matching in Python In this tutorial, you’ll learn how to harness the power of structural pattern matching in Python. You’ll explore the new...
View ArticleReal Python: Python Thread Safety: Using a Lock and Other Techniques
Python threading allows you to run parts of your code concurrently, making the code more efficient. However, when you introduce threading to your code without knowing about thread safety, you may run...
View ArticleThe Python Show: 48 - Writing About Python with David Mertz
In this episode of the Python Show Podcast, David Mertz is our guest. David is a prolific writer about the Python programming language. From his extremely popular IPM Developerworks articles to his...
View ArticlePyPy: A DSL for Peephole Transformation Rules of Integer Operations in the...
As is probably apparent from the sequence of blog posts about the topic in the last year, I have been thinking about and working on integer optimizations in the JIT compiler a lot. This work was mainly...
View ArticleMatt Layman: Epic Debugging, Hilarious Outcome - Building SaaS #205
In this episode, I dug into an issue with sign up. What I thought was going to be a minor issue to fix turned into a massively intense debugging session. We ended up going very deep with the...
View ArticleReal Python: Quiz: Defining Your Own Python Function
In this quiz, you’ll test your understanding of how to define your own Python function.You’ll revisit theoretical knowledge about passing values to functions, when to divide your program into separate...
View ArticlePython Software Foundation: Announcing Python Software Foundation Fellow...
The PSF is pleased to announce its second batch of PSF Fellows for 2024! Let us welcome the new PSF Fellows for Q2! The following people continue to do amazing things for the Python community:Leonard...
View ArticleTalk Python to Me: #482: Pre-commit Hooks for Python Devs
Do you struggle to make sure your code is always correct before you check it in? What about your team members' code? That one person who never wants to run the linter? Tired of dealing with tons of...
View ArticleProgramiz: Getting Started with Python
In this tutorial, you will learn to write your first Python program.
View Article