Python

[ follow ]
Python
fromThe JetBrains Blog
1 week ago

Meet the Islands Theme - The New Default Look for JetBrains IDEs | The JetBrains Platform Blog

Islands theme is now the default across JetBrains IDEs, offering a softer, clearer, and more cohesive UI to support focus and comfort.
fromRealpython
5 hours ago

How to Build the Python Skills That Get You Hired - Real Python

Web development roles often emphasize frameworks like Flask, Django, and, more recently, FastAPI, along with database knowledge and REST API design. Employers often seek full-stack engineers who feel comfortable working on the backend as well as frontend, including JavaScript, HTML, and CSS. Data science positions highlight libraries like NumPy, pandas, Polars, and Matplotlib, plus an understanding of statistical concepts. Machine learning jobs typically add PyTorch or TensorFlow to the mix. Test automation roles likely require familiarity with frameworks such as Selenium, Playwright, or Scrapy.
Python
fromPythonmorsels
20 hours ago

Embrace whitespace

Your code is easiest to read just after you've written it. Your future self will find your code far less readable days, weeks, or months after you've written it. When it comes to code readability, whitespace is your friend. Whitespace around operators Compare this: To this: I find that second one more readable because the operations we're performing are more obvious (as is the order of operations). Too much whitespace can hurt readability though: This seems like a step backward because we've lost those three groups we had before. With both typography and visual design, more whitespace isn't always better.
Python
Python
fromMedium
3 weeks ago

uv: The Blazing-Fast Python Package Manager Changing the Game

uv provides extremely fast Python dependency resolution and environment management using a Rust-based installer, aggressive caching, parallel downloads, and integrated tooling replacing multiple tools.
Python
fromInfoWorld
10 hours ago

Django tutorial: Get started with Django 6

Django 6.0 provides a full-featured, scalable Python web framework with routes, views, templates, migration tools, and a strong ecosystem for building and evolving web applications.
Python
fromPycoders
1 day ago

PyCoder's Weekly | Issue #713

Deprecation warnings often fail to reach downstream users; Python 3.14 relocates compression to a new module with zstd, pandas 3.0.0rc0 is out, and functional programming resources and WASI PEP exist.
#streamlit
Python
fromRealpython
1 day ago

Exploring Asynchronous Iterators and Iterables - Real Python

Asynchronous iterators and iterables enable non-blocking iteration over awaitable objects in Python, supporting async for loops, async generator expressions, and use within async loops and comprehensions.
fromPythonbytes
1 day ago

LinkedIn Cringe

Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 10am PT. Older video versions available there too. Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it. Brian #1: Deprecations via warnings Michael #2: docs
Python
fromRealpython
2 days ago

Writing DataFrame-Agnostic Python Code With Narwhals - Real Python

Narwhals is intended for Python library developers who need to analyze DataFrames in a range of standard formats, including Polars, pandas, DuckDB, and others. It does this by providing a compatibility layer of code that handles any differences between the various formats. In this tutorial, you'll learn how to use the same Narwhals code to analyze data produced by the latest versions of two very common data libraries. You'll also discover how Narwhals utilizes the efficiencies of your source data's underlying library when analyzing your data.
Python
#pricing
fromThepythoncodingstack
2 days ago

If You Love Queuing, Will You Also Love Priority Queuing? * [Club]

You provide three tiers to your customers: Gold, Silver, and Bronze. And one of the perks of the higher tiers is priority over the others when your customers need you. Gold customers get served first. When no Gold customers are waiting, you serve Silver customers. Bronze customers get served when there's no one in the upper tiers waiting. How do you set up this queue in your Python program?
Python
Python
fromEuroPython Blog
2 days ago

Humans of EuroPython: Moises Guimaraes

Dedicated volunteers donate hundreds of hours across logistics, programming, sponsorship, recordings, moderation, events, and photography to make EuroPython successful.
Python
fromTalkpython
3 days ago

anywidget: Jupyter Widgets made easy

anywidget provides Python notebooks minimal JavaScript to enable web-style interactivity across notebook platforms without the full web ecosystem overhead.
fromEuroPython Society
3 days ago

List of EPS Board Candidates for 2025/2026

My name is Angel, I'm a seasoned engineer with more than 20 years experience designing and building software and web apps. My current role doesn't involve much coding these days, still Python and its community is where my heart is. ☺️ My first EuroPython was in Florence 2012 where I was blown away by the amazing people gathered around the conference and the language. It was like nothing I've ever experienced before and the energy was palpable ... I was hooked!
Python
fromEfficient Coder
4 days ago
Python

A Pythonista's Guide to the 2026 Code Rush | EfficientCoder

Python remains dominant in AI and data, but needs companion languages for high-performance and scalable systems as efficiency demands rise.
Python
fromPycon
6 days ago

PyCon US 2026 - Registration, Hotels, Travel Grants & More!

PyCon US 2026 will be held May 13–19, 2026 in Long Beach with early-bird registration and discounted corporate, individual, and student ticket prices.
Python
fromPythonbytes
1 week ago

This episdoe has a typo

Pandas 3.0.0 introduces a dedicated string dtype, copy-on-write semantics, and pd.col expressions, while typos improves spellchecking in code with LSP support.
fromRealpython
1 week ago

Python Inner Functions: What Are They Good For? Quiz - Real Python

In this quiz, you'll test your understanding of the Python Inner Functions: What Are They Good For? tutorial. By working through this quiz, you'll revisit how inner functions work with enclosing scopes, when to use nonlocal to update captured state, how closures retain data across calls, and how decorators wrap a callable to extend behavior. You'll apply these ideas to organize helpers, reuse state, and write clear, maintainable functions in real projects.
Python
fromEfficient Coder
1 week ago

The Efficient Way to Learn Python in 2026 (5 Prompts + A Free Book) | EfficientCoder

I see two types of learners in 2026, and honestly, both of them are doing it wrong. The first group tries to learn solely through AI. They ask chatbots to "write a script," copy-paste the result, and feel productive. But the second they hit a bug the AI can't fix, they freeze. They have no foundation. They built a house on sand.
Python
fromPycoders
1 week ago

PyCoder's Weekly | Issue #712

Recent Python ecosystem updates: Qiskit quantum tutorials, DataFrame alternatives (Polars, DuckDB), Django 6.0 features, security PEPs, and Python 3.13.10 release.
#europython
Python
fromThe JetBrains Blog
1 week ago

PyCharm 2025.3 - Unified IDE, Jupyter notebooks in remote development, uv as default, and more | The PyCharm Blog

PyCharm 2025.3 unifies Community users into a single free IDE and adds remote Jupyter support, uv default, proactive DataFrame fixes with AI, and Claude Agent.
fromPyImageSearch
1 week ago

Grounding DINO: Open Vocabulary Object Detection on Videos - PyImageSearch

Imagine asking a friend to find any object in a picture simply by describing it. This is the promise of open-set object detection: the ability to spot and localize arbitrary objects (even ones never seen in training) by name or description. Unlike a closed-set detector trained on a fixed list of classes (say, "cat", "dog", "car"), an open-set detector can handle new categories on the fly, simply from language cues.
Python
Python
fromRealpython
1 week ago

Lazy Imports Land in Python and Other Python News for December 2025 - Real Python

Python 3.15 advances with alpha releases, UTF-8 default, new profiling and C APIs; PEP 810 accepted for explicit lazy imports; Windows installer manager updated.
fromShed-skin
1 week ago

Shed Skin restricted-Python-to-C++ compiler v0.9.11

Most importantly, it adds support for Python 3.14. It also adds support for many 3.x features that were not yet implemented, in addition to basic support for the base64 module. It also optimizes a few more common code patterns. Paul Boddie was able to add support for libpcre2, and in the process updated conan to version 2. Thanks to Shakeeb and now Paul, Shed Skin has had first-class Windows support for the last few releases.
Python
#beginner-programming
Python
fromCaktusgroup
2 weeks ago

LLM Basics: Ollama Function Calling | Caktus Group

Use Ollama's local Llama 3.2 model to perform function calling by providing function schemas or Python functions and executing returned tool calls.
Python
fromRaymondcamden
1 week ago

Make Your Own Spotify Unwrapped

Spotify allows users to request and download a ZIP of their listening history as JSON files, enabling custom reports without using Spotify APIs.
Python
fromRealpython
2 weeks ago

How to Use Google's Gemini CLI for AI Code Assistance Quiz - Real Python

Test practical knowledge of using Google's Gemini CLI for AI code assistance, including installation, authentication, permissions, interactive sessions, and secure shell command approval.
Python
fromTalkpython
2 weeks ago

Computer Science from Scratch

Rebuild computer science education to serve self-taught and nontraditional programmers by teaching core CS concepts through practical, career-relevant curricula.
Python
fromPycoders
2 weeks ago

PyCoder's Weekly | Issue #711

Python offers utilities for pairwise iteration and mocking, supports multi-agent orchestration with Temporal, and integrates with Claude Code and a new SQL Server Python driver.
#cpython
fromPython Software Foundation Blog
2 weeks ago
Python

Sovereign Tech Agency and PSF Security Partnership

Investment improves CPython and PyPI security and reliability via archive-module fuzz-testing and OAuth/OIDC-based verified account recovery, enhancing supply chain resilience and user experience.
fromTheregister
4 weeks ago
Python

Rust edges toward CPython and older platforms won't like it

CPython maintainers propose integrating Rust gradually, starting with optional extensions and eventually requiring Rust across the CPython codebase.
Python
fromPythonmorsels
2 weeks ago

Wrapping text output in Python

Use Python's textwrap module to automatically wrap text to a specified width and render wrapped lines with wrap() or fill().
Python
fromPyImageSearch
2 weeks ago

KV Cache Optimization via Tensor Product Attention - PyImageSearch

Tensor Product Attention factorizes Q, K, V via tensor decompositions to create low-rank contextual components, dramatically reducing KV cache and preserving RoPE positional awareness.
Python
fromPythonbytes
2 weeks ago

Overlooked Python Typing

Django 6 (expected Dec 2025) adds CSP, template partials, Tasks framework, and modern email API; Python typing advances and codespell improve developer workflows.
#open-source
fromMouse Vs Python
2 weeks ago

ANN: Vibe Coding Video Games with Python - Mouse Vs Python

Welcome to Vibe Coding Video Games with Python. In this book, you will learn how to use artificial intelligence to create mini-games. You will attempt to recreate the look and feel of various classic video games. The intention is not to violate copyright or anything of the sort, but instead to learn the limitations and the power of AI. Instead, you will simply be learning about whether or not you can use AI to help you know how to create video games.
Python
Python
fromTalkpython
2 weeks ago

Python apps with LLM building blocks

Treat LLMs as standard APIs in Python apps: create focused endpoints, use wrappers for caching/validation, monitor responses, and constrain outputs with types.
fromThepythoncodingstack
2 weeks ago

My Life * The Autobiography of a Python Object

And that's it. I exist. I have no recollection of anything before this instant. But I'm very aware of what I am now. I'm an object. This is the line of code that brought me into existence: My first recollection from a few moments ago was of being inside Team.__new__(). And I felt an affinity with my clan right away. I was a Team instance-an object of type Team.
Python
fromInfoWorld
2 weeks ago

Python vs. Kotlin: Which loops do you like better?

Prepare to be surprised when we compare Python and Kotlin for simple programs, loops, imports, exceptions, and more. You can also get a super early preview of Python's next-generation (Python 3.15) sampling profiler, get up close with AWS's new AI-powered Zed editor, and explore your options for AI/ML programming outside of the Python ecosystem.
Python
Python
fromdeath and gravity
2 weeks ago

reader 3.20 released - we're so back

reader 3.20 adds an htmx+Bootstrap web UI, modernized project infrastructure, and a substantially rewritten entry deduplication plugin with improved heuristics and tests.
Python
fromRealpython
3 weeks ago

How to Convert Bytes to Strings in Python - Real Python

Use Python's bytes.decode() with the correct character encoding to convert raw byte data from files, networks, or APIs into readable strings.
Python
fromPythonbytes
3 weeks ago

Inverted dependency trees

PEP 814 adds a built-in frozendict immutable mapping to Python to prevent unintended modifications and support reliable immutable dictionaries.
Python
fromPython Software Foundation Blog
3 weeks ago

PSF Code of Conduct Working Group Shares First Transparency Report

The PSF Code of Conduct Working Group will publish annual transparency reports starting with a 2024 report, backed by improved record keeping and public access.
Python
fromPyImageSearch
3 weeks ago

Pushing Docker App to AWS ECR for Lambda Deployment Using AWS CLI - PyImageSearch

Configure AWS CLI, build and push a Docker image of a FastAPI ONNX inference app to AWS ECR for Lambda deployment.
fromRealpython
3 weeks ago

How to Properly Indent Python Code - Real Python

Most editors and integrated development environments (IDEs) can indent Python code correctly with little to no input from the user. You'll see examples of this in the sections that follow. Python-Aware Editors In most cases, you'll be working in a Python-aware environment. This might be a full Python IDE such as PyCharm, a code editor like Visual Studio Code, the Python REPL, IPython, IDLE, or even a Jupyter notebook. All these environments understand Python syntax and indent your code properly as you type.
Python
fromTreyhunner
3 weeks ago

Python Black Friday & Cyber Monday sales (2025)

Python Morsels: I'm offering lifetime access for the second time ever (more details below) Data School: a new subscription to access all of Kevin's 7 courses plus all upcoming courses Talk Python: AI Python bundle, the Everything Bundle, and Michael's Talk Python in Production Reuven Lerner: get 20% off your first year of the LernerPython+data tier (code BF2025) : get 50% off all his books including his all books bundle (code BF202550) Mike Driscoll: get 50% off all his Python books and courses (code BLACKISBACK)
Python
fromMathspp
3 weeks ago

Generalising itertools.pairwise

itertools.pairwise is an iterable from the standard module itertools that lets you access overlapping pairs of consecutive elements of the input iterable. That's quite a mouthful, so let me translate: You give pairwise an iterable, like "ABCD", and pairwise gives you pairs back, like ("A", "B"), ("B", "C"), and ("C", "D"). In loops, it is common to unpack the pairs directly to perform some operation on both values.
Python
Python
fromTall, Snarky Canadian
3 weeks ago

Should I rewrite the Python Launcher for Unix in Python?

Pure Python can replace Rust for the Python Launcher for Unix because I/O-bound behavior keeps Python performance acceptable for practical use.
Python
fromdaniel.feldroy.com
3 weeks ago

TIL: Default code block languages for mkdocs

Set default_lang: python in mkdocs.yml using pymdownx.highlight so code blocks without language tags are highlighted as Python.
fromTreyhunner
3 weeks ago

Python Morsels Lifetime Access Sale

When you sign up for Python Morsels, you'll choose your current Python skill level, from novice to advanced. Based on your skill level, each Monday I'll send you a personalized routine with: a short screencast to watch (or read) a multi-part exercise to move you outside your comfort zone a mini exercise that you can accomplish in just 10 minutes links to dive deeper into subsequent screencasts and exercises
Python
#fastapi
fromRealpython
3 weeks ago
Python

Episode #275: Building a FastAPI Application & Exploring Python Concurrency - The Real Python Podcast

fromRealpython
3 weeks ago
Python

Episode #275: Building a FastAPI Application & Exploring Python Concurrency - The Real Python Podcast

Python
fromPython GUIs
4 weeks ago

First Steps With the DearPyGui Library for Desktop GUI Development

DearPyGui is a GPU-accelerated, cross-platform Python GUI framework offering modern widgets, themes, developer tools, and a clear app lifecycle for high-performance desktop interfaces.
Python
fromTall, Snarky Canadian
3 weeks ago

The varying strictness of TypedDict

TypedDict now controls both key requiredness and whether extra keys are allowed, with Python 3.15 adding closed TypedDict behavior to restrict unknown keys.
#mcp
Python
fromRealpython
4 weeks ago

Build a Python MCP Client to Test Servers From Your Terminal Quiz - Real Python

Five-question quiz tests building a Python MCP client covering chat interface, AI handler initialization, runtime error handling, and command-line entry-point updates.
fromThepythoncodingstack
4 weeks ago

I Don't Like Magic * Exploring The Class Attributes That Aren't Really Class Attributes * [Club]

I don't like magic. I don't mean the magic of the Harry Potter kind-that one I'd like if only I could have it. It's the "magic" that happens behind the scenes when a programming language like Python does things out of sight. You'll often find things you have to "just learn" along the Python learning journey. "That's the way things are," you're told.
Python
Python
fromRealpython
4 weeks ago

Break Out of Loops With Python's break Keyword - Real Python

The break statement immediately exits the innermost loop, stopping further iterations; continue skips the current iteration but does not exit the loop.
Python
fromPyImageSearch
1 month ago

Build a VLC Playlist Generator with SmolVLM for Video Highlight Tagging - PyImageSearch

A VLC Playlist Generator uses SmolVLM2 to detect video highlights and generate XSPF playlists for direct navigation in VLC.
#kv-cache
fromPyImageSearch
1 month ago

Converting a PyTorch Model to ONNX for FastAPI (Docker) Deployment - PyImageSearch

In this lesson, you will learn how to convert a pre-trained ResNetV2-50 model using PyTorch Image Models (TIMM) to ONNX, analyze its structure, and test inference using ONNX Runtime. We'll also compare inference speed and model size against standard PyTorch execution to highlight why ONNX is better suited for lightweight AI inference. This prepares the model for integration with FastAPI and Docker, ensuring environment consistency before deploying to AWS Lambda.
Python
Python
fromNedbatchelder
1 month ago

Why your mock breaks later

Patch mocks where the object is used, not where it's defined, to avoid unintended, global effects on other libraries and test infrastructure.
fromMathspp
4 weeks ago

Floodfill algorithm in Python

ctx = canvas.getContext("2d") URL = "/blog/floodfill-algorithm-in-python/_python.txt" async def load_bitmap(url: str) -> list[list[int]]: # Fetch the text file from the URL response = await fetch(url) text = await response.text() bitmap: list[list[int]] = [] for line in text.splitlines(): line = line.strip() if not line: continue row = [int(ch) for ch in line if ch in "01"] if row: bitmap.append(row) return bitmap
Python
Python
fromMedium
1 month ago

How to activate virtual environment in python3

Use virtual environments to avoid pip 'externally-managed-environment' errors and prevent altering the system Python or other projects' dependencies.
Python
fromPythonbytes
1 month ago

Tapping into HTTP

Tools and techniques: httptap for detailed HTTP timing, Python performance hacks to speed code, and FastRTC for real-time Python audio/video streaming.
Python
fromInfoWorld
1 month ago

Python vs. Mojo (and Java, Go, Rust, and .NET)

Mojo, alternative data-science languages, Python dataclasses, and a new PyTorch-related distributed-processing framework are current focal points for Python practitioners.
Python
fromMicrosoft for Python Developers Blog
1 month ago

Python in Visual Studio Code - November 2025 Release - Microsoft for Python Developers Blog

Python extension November 2025 adds Copilot 'Add as docstring', localized hover summaries, Convert wildcard imports code action, and debugger support for multiple interpreters.
Python
fromPythonmorsels
1 month ago

Unnecessary parentheses in Python

Parentheses in Python serve three roles—calling callables, creating empty tuples, and grouping—while grouping can be optional, misplaced, or enable implicit line continuation.
Python
fromEfficient Coder
1 month ago

The Anatomy of a Scalable Python Project | EfficientCoder

Organize Python projects with a balanced folder structure, centralized config, fast tests, and predictable boundaries to scale code, team, environments, and speed.
Python
frompythontest.com
1 month ago

Explore Python dependencies with `pipdeptree` and `uv pip tree`

pipdeptree and uv pip tree reveal Python package dependency trees; pipdeptree runs with --python auto while uv pip tree integrates with uv-managed virtual environments.
fromdaniel.feldroy.com
1 month ago

Visiting Tokyo, Japan from November 12 to 24

I'm excited to announce that me and Audrey will be visiting Japan from November 12 to November 24, 2025! This will be our first time in Japan, and we can't wait to explore Tokyo. Yes, we'll be in Tokyo for most of it, near the Shinjuku area, working from coffee shops, meeting some colleagues, and exploring the city during our free time.
Python
Python
fromRealpython
1 month ago

Python Operators and Expressions - Real Python

Python operators enable computation and data manipulation using arithmetic, comparison, Boolean, identity, membership, bitwise, concatenation, repetition, and augmented assignment operators.
fromNedbatchelder
1 month ago

Three releases, one new organization

To measure your code, coverage.py needs to know what code got executed. To know that, it collects execution events from the Python interpreter. CPython now has two mechanisms for this: trace functions and sys.monitoring. Coverage.py has two implementations of a trace function (in C and in Python), and an implementation of a sys.monitoring listener. These three components are the measurement cores, known as "ctrace", "pytrace", and "sysmon".
fromThepythoncodingstack
1 month ago

The Misunderstood Hashable Types and Why Dictionaries Are Called Dictionaries * [Club]

Pick up a dictionary. No, not that one. The real dictionary you have on your bookshelf, the one that has pages made of paper, which you use to look up the meaning of English words. Or whatever other language. But let's assume it's an English dictionary. Now, look up zymology. I'll wait... Done? It probably didn't take you too long to find zymology.
Python
Python
fromMathspp
1 month ago

Module compression overview

Python 3.14 provides a compression package exposing bz2, gzip, lzma, zlib, and a new compression.zstd module for unified compression support.
Python
fromRealpython
1 month ago

Episode #273: Advice for Writing Maintainable Python Code - The Real Python Podcast

Use clear comments, expressive names, avoid magic numbers, design for future changes, and adopt modern tooling (like Ruff) to make Python code maintainable and refactorable.
fromRealpython
1 month ago

Python MarkItDown: Convert Documents Into LLM-Ready Markdown - Real Python

The MarkItDown library lets you quickly turn PDFs, Office files, images, HTML, audio, and URLs into LLM-ready Markdown. In this tutorial, you'll compare MarkItDown with Pandoc, run it from the command line, use it in Python code, and integrate conversions into AI-powered workflows. By the end of this tutorial, you'll understand that: You can install MarkItDown with pip using the specifier to pull in optional dependencies.
Python
fromTreehouse Blog
1 month ago

From Excel to Python: A Beginner's Guide

Excel gives you a huge toolbox of functions ( SUM, IF, VLOOKUP, INDEX, etc.), but eventually, you hit a wall. Maybe you want to do something more custom than Excel allows. Maybe your file slows down with too many rows. Or maybe there simply isn't a built-in function for exactly what you need. Python solves this by letting you build your own custom functions. That's why it's so powerful for data analysis-it's Excel without limits.
Python
#__slots__
Python
The Python Software Foundation withdrew a $1.5M NSF grant proposal because funding conditions required denying support for diversity across all PSF activities.
Python
fromTheregister
1 month ago

Python will offer lazy imports, adding code after startup

PEP 810 introduces opt-in explicit lazy imports to defer module loading until needed, improving Python startup times while preserving backward compatibility.
Python
fromMathspp
1 month ago

A generator, duck typing, and a branchless conditional walk into a bar

Generators provide lazy evaluation in Python, enabling iterable objects like range to create values on demand and avoid upfront computation.
Python
fromMedium
1 month ago

From Chaos to Coordination: The Power of Multi AI Agent Systems with CrewAI

CrewAI uses multiple specialized AI agents organized into crews and processes to manage complex, multi-step projects more reliably than a single AI.
Python
fromPythonbytes
1 month ago

Gilded Python and Beyond

Cyclopts replaces Typer's proxy-default CLI design with annotations to fix usability issues, while Python 3.14's free-threaded interpreter reduces GIL-related penalties to about 5–10%.
[ Load more ]