Python

[ follow ]
#python-314
#mcp
Python
fromInfoWorld
1 day ago

PDM: A smarter way to manage Python packages

PDM recomputes dependency graphs after changes; use pdm list or pdm list --graph, pdm install or pdm sync to install; PDM doesn't mark dev/optional packages.
Python
fromPycoders
2 days ago

PyCoder's Weekly | Issue #702

Django adds django.tasks for abstracted background task management; Python advances include free-threaded asyncio scaling and MCP servers to connect LLMs with tools and data.
Python
fromRoseHosting
3 days ago

How to Install Python on Debian 13

Install Python 3.13 on Debian 13 using APT quickly, or compile newer Python versions from source for customization and the latest features.
fromRealpython
2 days ago

Modern Python Linting With Ruff - Real Python

Linting is essential to writing clean and readable code that you can share with others. A linter, like Ruff, is a tool that analyzes your code and looks for errors, stylistic issues, and suspicious constructs. Linting allows you to address issues and improve your code quality before you commit your code and share it with others. Ruff is a modern linter that's extremely fast and has a simple interface, making it straightforward to use.
Python
fromPythonmorsels
2 days ago

Why splitlines() instead of split("\n")?

Let's say we have some text that was retrieved from a database, and the original text came from a form submission in a web browser. Web browsers often represent line breaks as a carriage return character, followed by a line feed character: That's what we see in our text as well: \r followed by \n. This is often called CRLF (carriage return and line feed) whereas \n is called LF (line feed).
Python
#ty
Python
fromInfoWorld
6 days ago

Python and Poetry: 4 tools for keeping Python simple

nvmath-python enables accelerated NVIDIA GPU math in Python with low-level performance knobs; The Zen of Python (import this) provides concise Python programming aphorisms.
Python
fromBeauty-of-imagination
6 days ago

Abusing yahi -a log based statistic tool a la awstats- to plot histograms/date series from CSV

Yahi is a pip-installable Python module that builds a single static HTML page to aggregate and analyze logs (including CSV) using regex-based parsing and aggregations.
Python
fromThe JetBrains Blog
1 week ago

Why Is Python So Popular in 2025? | The PyCharm Blog

Python remains a widely used, versatile language in 2025, powering AI, machine learning, data workflows, and scalable production systems across developer experience levels.
Python
fromInfoWorld
1 week ago

How to manage Python projects with Poetry

Poetry is an all-in-one Python project manager providing deterministic dependencies, virtual environment handling, and simplified building, packaging, and publishing to PyPI.
Python
fromPycoders
1 week ago

PyCoder's Weekly | Issue #701

Multiple Python-related tools, events, and updates cover converting Python to LaTeX, MCP considerations, Playwright testing techniques, and recent Python and Django releases.
Python
fromRealpython
1 week ago

Strip Characters From a Python String Quiz - Real Python

Use strip, lstrip, and rstrip to remove whitespace or specified characters from string ends and choose the appropriate method for the desired trimming.
Python
fromTalkpython
1 week ago

pyx - the other side of the uv coin (announcing pyx)

Pyx is a Python-native package registry that mirrors PyPI, works with pip and uv, and enables faster, more predictable installs via smart client-server cooperation.
Python
fromRealpython
1 week ago

Strip Characters From a Python String - Real Python

Use Python's .strip(), .lstrip(), .rstrip() to remove whitespace or specified characters from string ends; use .removeprefix()/.removesuffix() for exact sequences.
Python
fromCreative Bloq
1 week ago

Think you've seen the weirdest place to play DOOM? Think again

DOOM can be run and played inside Blender by rendering the game to an icon using Doomviz and custom icon-scaling, caching, and input handling.
Python
fromThepythoncodingstack
1 week ago

The Networking Event (#4 in The itertools Series * `combinations()` and `permutations()`)

Generate round-robin one-to-one meeting rotas from a list of participant names for pairwise networking.
Python
fromRealpython
1 week ago

What Can You Do With Python? Quiz - Real Python

Python can be used across web development, CLIs, TUIs, GUIs, data work, and robotics, and learners can assess knowledge with an interactive quiz.
Python
fromRealpython
1 week ago

Ways to Start Interacting With Python Quiz - Real Python

Review methods to run Python interactively, including REPL, executing scripts, and working within integrated development environments (IDEs).
Python
fromPythonmorsels
2 weeks ago

Nested list comprehensions

Clearly formatted nested list comprehensions express list-of-lists creation more directly and readably than equivalent nested for-loops.
#type-hints
Python
fromRealpython
2 weeks ago

Python Project Management With uv - Real Python

uv is a Rust-written, high-speed, all-in-one Python package and project manager that handles dependencies, virtual environments, Python versions, builds, and publishing.
Python
fromPycoders
2 weeks ago

PyCoder's Weekly | Issue #699

Feature flags, Rust-based Python type checkers, AI agent monitoring tools, pandas .dropna guidance, and tooling updates provide practical improvements for Python development and debugging.
Python
fromMicrosoft for Python Developers Blog
2 weeks ago

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

Pylance adds experimental AI hover summaries and an in-memory Run Code Snippets tool; Python and Jupyter extensions receive updates and Python Environments adds pipenv support.
#uv
fromStreamHacker
2 weeks ago

Python Async Gather in Batches

Python's asyncio.gather function is great for I/O bound parallel processing. There's a simple utility function I like to use that I call gather_in_batches: async def gather_in_batches(tasks, batch_size=100, return_exceptions=False): for i in range(0, len(tasks), batch_size): batch = tasks[i:i+batch_size] for result in await asyncio.gather(*batch, return_exceptions=return_exceptions): yield result
Python
Python
fromMouse Vs Python
2 weeks ago

Erys - A TUI for Jupyter Notebooks - Mouse Vs Python

Erys is a Python Textual-based terminal application that lets users create, edit, and run Jupyter Notebooks in the terminal using jupyter-client.
fromInfoWorld
2 weeks ago

Making good choices: How to get the best from Python tools

The way to get the best from Python, aka "the lingua franca of AI," is by knowing both its traps and its treasures.
Python
Python
fromRealpython
2 weeks ago

Episode #265: Python App Hosting Choices & Documenting Python's History - The Real Python Podcast

Choose platform-as-a-service for simplicity and automation, containers for portability and consistency, and virtual machines for full control and isolation.
fromTheregister
3 weeks ago

AI-powered penetration tool downloaded 10K times

Villager, a new penetration-testing tool linked to a suspicious China-based company and described by researchers as "Cobalt Strike's AI successor," has been downloaded about 10,000 times since its release in July. The package, published on Python Package Index, operates as a Model Context Protocol (MCP) client and integrates multiple security tools. It includes Kali Linux, which legitimate defenders use to automate penetration testing, and it contains hundreds of tools that can also be used to launch cyber attacks at scale.
Python
Python
fromWingware
3 weeks ago

Wing Python IDE Version 11.0.4 - September 8, 2025 - Wing Python IDE

Wing 11.0.4 adds Python 3.14 debugger and analysis support, improves code analysis and warnings, and expands AI-assisted development with broader provider and context support.
#pandas
Python
fromRealpython
3 weeks ago

Defining and Calling Python Functions Quiz - Real Python

Interactive 9-question quiz to practice defining and calling Python functions, positional/keyword arguments, defaults, docstrings, collecting extra arguments, and enforcing parameter passing.
fromRealpython
3 weeks ago

Sorting Dictionaries in Python: Keys, Values, and More Quiz - Real Python

This quiz helps you practice sorting dictionaries by keys, values, and custom rules in modern Python. You'll revisit how insertion order works, when to use different views, and how to rebuild sorted dictionaries. You'll also learn best practices for sorting dictionaries efficiently. For a complete overview, check out Sorting Dictionaries: Keys, Values, and More. The quiz contains 11 questions and there is no time limit. You'll get 1 point for each correct answer.
Python
Python
fromRealpython
3 weeks ago

Python String Splitting - Real Python

Use Python's .split() to divide strings by whitespace or custom delimiters and control the number of splits with maxsplit; use re.split for regex patterns.
Python
fromInfoWorld
3 weeks ago

How to spin Python's challenges into AI gold

Standardize Python tools, workflows, and a 'golden path' to eliminate ecosystem friction and accelerate reliable AI and data project delivery.
Python
fromTechBeamers
3 weeks ago

Python Memory Tricks to Boost Performance

Use Python 3.13's mimalloc and memory-aware coding techniques to reduce memory usage and prevent MemoryError and leaks.
Python
fromPythonmorsels
4 weeks ago

The power of Python's print function

Python's print function accepts multiple positional arguments, can unpack iterables, handles automatic string conversion, and offers flexible separators—often replacing join for printing.
Python
fromPythonmorsels
4 weeks ago

The power of Python's print function

Python's print function accepts multiple arguments, unpacks iterables with *, and automatically converts objects to strings, providing flexible alternatives to join and f-strings.
Python
fromMouse Vs Python
4 weeks ago

Ep 55 - The Python Show Podcast - The Python Documentary with Paul Everitt - Mouse Vs Python

In this episode, we have special guest Paul Everitt on the show to discuss the new Python Documentary that was released last week.
#pip
fromMathspp
4 weeks ago

TIL 131 - Change casing in search & replace

VS Code has a search & replace feature that lets you use regex to look for patterns and then reference groups in the replacement... But it lets you do something else that's really cool. Changing casing with special sequences When you are replacing groups, you can use special sequences to change the casing of the group you're inserting, according to the following table: The picture below shows an example of a search & replace operation where I looked for the text "all in one go".
Python
Python
fromPycoders
4 weeks ago

PyCoder's Weekly | Issue #697

Python ecosystem resources cover its history, security (malicious code detection), Airflow DAG best practices, docstrings, pandas performance, JSON handling, copying, and GPU acceleration.
Python
fromRealpython
4 weeks ago

A History of Python Versions and Features - Real Python

Practical overview of Python evolution, major version changes, reasons, and how to use modern features for cleaner, faster, more maintainable code.
fromdaniel.feldroy.com
1 month ago

TIL: Setting environment variables for pytest

When writing tests in pytest, often there's a need to set environment variables for your tests. Instead of modifying `os.environ` directly, which can lead to side effects and make tests harder to manage, here's how to do it with the [pytest-env](https://pypi.org/project/pytest-env/) package. First, install the package. ```sh pip install pytest-env # classic but works great uv add pytest-env # if you're one of us cool kids using uv uv add pytest-env --group test # if you use a specific test group of dependencies ```
Python
Python
fromPythonmorsels
1 month ago

Checking your operating system in Python

Use os.name, sys.platform, or platform.system() to detect the operating system in Python, varying in granularity and user-facing naming.
fromRealpython
1 month ago

Managing Multiple Python Versions With pyenv Quiz - Real Python

In this quiz, you'll test your understanding of Managing Multiple Python Versions With pyenv. You'll revisit how to install multiple versions of Python and switch between the installed versions.
Python
fromBeauty-of-imagination
1 month ago

The true cost and code of parsing the integrality of (french speaking) bluesky ATPROTO in python

I actually run from my family outdated PC a full scan in realtime of bluesky with some python code. And then later : - AppViews are actual "application backends". Bluesky operates the bsky.app appview, i.e. what people know as the Bluesky app. Importantly, in ATProto, there is no reason for everyone to run their own AppView. You can run one (and it costs about $300/mo to run a Bluesky AppView ingesting all data currently on the network in real time if you want to do that).
Python
Python
fromRealpython
1 month ago

Exploring Python Closures: Examples and Use Cases Quiz - Real Python

Test knowledge of Python closures with an 11-question, untimed quiz; earn one point per correct answer and receive a final percentage score.
Python
fromInfoWorld
1 month ago

New tools make Python app distribution easier than ever

PyApp and uv ease Python application distribution, and AWS's Claude-powered Kiro IDE generates Python code interactively, including tests and documentation.
#pypy
Python
fromThepythoncodingstack
1 month ago

When You No Longer Need That Object * Dealing With Garbage in Python

CPython automatically reclaims unused objects via garbage collection and calls __del__() as a finaliser just before object destruction.
Python
fromAntocuni
17 years ago

PyPy.NET goes Windows Forms

pypy-cli can import and use external .NET assemblies (including Windows Forms), enabling basic GUI apps but lacking delegate support for event handling.
Python
fromRealpython
1 month ago

Exploring Python T-Strings Quiz - Real Python

Covers essential Python string formatting techniques including f-strings, C-style formatting, str.format(), and new t-strings in a 10-question interactive quiz.
Python
fromAntocuni
1 month ago

Inside CPython's attribute lookup - Antonio Cuni's blog

Attribute lookup in Python is more complex than checking instance __dict__ then type; descriptors, instance vs type lookup, and metaclasses affect behavior.
fromRealpython
1 month ago

Profiling Performance in Python Quiz - Real Python

Ready to level up your Python code optimization skills? In this quiz, you'll revisit key concepts about profiling, benchmarking, and diagnosing performance bottlenecks. You'll practice with tools like cProfile and timeit, and see how deterministic and statistical profilers differ.
Python
fromRealpython
1 month ago

Working With Python's .__dict__ Attribute Quiz - Real Python

This quiz helps you sharpen your understanding of Python's .__dict__ attribute.
Python
Python
fromRealpython
1 month ago

Python Annotations Quiz - Real Python

Lazy annotations in Python 3.14 defer evaluation of annotations to improve performance, fix forward reference issues, and support static type checking and runtime processing.
Python
fromPycoders
1 month ago

PyCoder's Weekly | Issue #696

Namespace packages, context managers, functools.Placeholder, PEP updates, and testing/scientific-Python resources offer practical tools and guidance for modern Python development.
Python
fromMouse Vs Python
1 month ago

Python Books and Courses - Back to School Sale - Mouse Vs Python

If you are heading back to school and need to learn Python, consider checking out my sale.You can get 25% off any of my eBooks or courses using the following coupon at checkout: FALL25
Python
fromRealpython
1 month ago

Python Skill Test Quiz - Real Python

A 12-question interactive quiz evaluates Python skills from fundamentals to advanced topics, scoring one point per correct answer and offering explanations and study links.
Python
fromRealpython
1 month ago

Profiling Performance in Python - Real Python

Use software profiling before optimizing Python code to determine if optimization is necessary and which parts to focus on.
fromInfoWorld
1 year ago

Maker of RStudio launches new R and Python IDE

Positron IDE is designed for both R and Python, featuring a user-friendly interface similar to Visual Studio Code with built-in functionality for both programming languages.
Python
Python
fromRealpython
1 month ago

How to Write Docstrings in Python - Real Python

Docstrings are triple-quoted string literals placed immediately after module, class, or function definitions to document usage and are accessible at runtime via __doc__ guided by PEP 257.
Python
fromZero To Mastery
1 month ago

[August 2025] Python Monthly Newsletter | Zero To Mastery

Curated Python highlights for August 2025 covering performance myths, alternatives to classes, nested functions, a pixel-art editor, pyx registry beta, and code formatter updates.
Python
fromNedbatchelder
1 month ago

Finding unneeded pragmas

A tool detects coverage.py exclusion pragmas that were executed, helping identify exclusions that may no longer be necessary.
Python
fromSebastian Polsterl
1 month ago

scikit-survival 0.25.0 with improved documentation released | Sebastian Polsterl

scikit-survival 0.25.0 adds scikit-learn 1.7 support and overhauls API documentation, clarifying performance metrics and prediction outputs for survival models.
Python
fromRealpython
1 month ago

Episode #262: Travis Oliphant: SciPy, NumPy, and Fostering Scientific Python - The Real Python Podcast

Core open-source Python scientific tools like SciPy, NumPy, and Numba were developed to manage large numerical datasets and foster a collaborative scientific computing ecosystem.
fromhttps://daniel.feldroy.com
1 month ago

TIL: Single source version package builds with uv (redux)

Here's how [he demonstrated](https://adamj.eu/tech/2025/07/30/python-check-package-version-importlib-metadata-version/) I should be doing it instead. ```toml # pyproject.toml [project] name = "air" version = "0.25.0" # This is the source of truth for the version number ```
Python
Python
fromMathspp
1 month ago

TIL 130 - Format Python code directly with uv

In uv version 0.8.13, released one or two days ago, uv added the command format that allows you to format your Python code directly through the uv CLI.
fromMathspp
1 month ago

functools.Placeholder

The new Placeholder, added in Python 3.14, only makes sense in the context of functools.partial, so in order to understand Placeholder you will need to understand how functools.partial works and how to use it. In a nutshell, partial allows you to perform partial function application, by "freezing" arguments to functions. How to pass arguments to functools.partial Up until Python 3.13, you could use partial to freeze arguments in two types of ways: you could pass positional arguments to partial, which would be passed in the same order to the function being used with partial; or you could pass keyword arguments to partial, which would be passed with the same name to the function being used with partial.
Python
Python
fromIT Pro
1 month ago

Using an older version of Python? You're leaving 'money and performance on the table' if you don't upgrade - and missing out on big developer efficiency gains

Most enterprises (83%) run Python versions a year or more older, foregoing upgrades that deliver performance and developer productivity improvements.
Python
fromTheregister
1 month ago

Python usage growing while Foundation struggles for funds

The eighth Python Developer Survey shows that Python usage is expanding with increasing numbers of new developers and significant challenges in version upgrades.
Python
fromRealpython
1 month ago

Deep vs Shallow Copies in Python - Real Python

Understanding how to copy objects in Python is essential for effective programming.
fromThe Hacker News
1 month ago

PyPI Blocks 1,800 Expired-Domain Emails to Prevent Account Takeovers and Supply Chain Attacks

These changes improve PyPI's overall account security posture, making it harder for attackers to exploit expired domain names to gain unauthorized access to accounts.
Python
fromRuslan's Blog
1 month ago

5 to 18: Why Your Count Might Be Off by One

Counting numbers in a range is straightforward but can be misleading. The common mistake is forgetting to include both endpoints of the range.
Python
Python
fromTechzine Global
1 month ago

Python matures: data science and Rust integration dominate

Python usage is dominated by data science, with newcomers comprising a significant portion of the developer community.
[ Load more ]