Python

[ follow ]
#python-314
Python
fromPythontest
2 days ago

Installing Python 3.14 on Mac or Windows | PythonTest

uv enables clean, convenient installation and management of multiple Python versions; python.org installers remain a simple choice for single-version users.
Python
fromTall, Snarky Canadian
1 day ago

Why it took 4 years to get a lock files specification

A lock file must unambiguously record where and how to obtain and install every dependency, handling source trees, sdists, wheels, specifiers, and dependency graphs.
Python
fromMicrosoft for Python Developers Blog
2 days ago

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

October 2025 Python extensions for VS Code add Python Environments fixes, Copy Test ID testing workflow, and shell startup improvements for environment activation.
fromTreyhunner
3 days ago

Handy Python REPL Modifications

I find myself in the Python REPL a lot. I open up the REPL to play with an idea, to use Python as a calculator or quick and dirty text parsing tool, to record a screencast, to come up with a code example for an article, and (most importantly for me) to teach Python. My Python courses and workshops are based largely around writing code together to guess how something works, try it out, and repeat.
Python
Python
fromPeterbe
2 days ago

In Python, you have to specify the type and not rely on inference - Peterbe.com

TypeScript infers literal argument types causing compile-time errors for mismatched values; Python's mypy requires explicit annotations to report the same mismatches.
fromTheregister
4 days ago

Python 3.14 released with cautious free-threaded support

Free threading in Python, which disables the global interpreter lock (GIL), is now a complete implementation of PEP (Python Enhancement Proposal) 703, a much anticipated feature which makes concurrent programming in Python natural. Free-threaded mode also enables a specialized adaptive interpreter, originally part of the Faster CPython project led by Mark Shannon at Microsoft (though the company axed its support in May).
Python
Python
frompythontest.com
5 days ago

pytest 2.6.0 release

pytest-check 2.6.0 makes check.raises() return an object with a .value property so exception values can be inspected like pytest.raises().
Python
fromBitcoin Magazine
5 days ago

Brazil's OranjeBTC Goes Public, Boosts LATAM Bitcoin Push

OranjeBTC listed on Brazil's B3 as a corporate vehicle centered on holding 3,675 BTC, becoming Latin America's largest corporate Bitcoin holder.
#functions
#ruff
#string-formatting
fromRealpython
1 week ago

Episode #268: Advice on Beginning to Learn Python - The Real Python Podcast

What's changed about learning Python over the last few years? What new techniques and updated advice should beginners have as they start their journey? This week on the show, Stephen Gruppetta and Martin Breuss return to discuss beginning to learn Python. We share techniques for finding motivation, building projects, and learning the fundamentals. We provide advice on installing Python and not obsessing over finding the perfect editor. We also examine incorporating LLMs into learning to code and practicing asking good questions.
Python
#mcp
Python
fromInfoWorld
1 week 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
1 week 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
1 week 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.
fromPythonmorsels
1 week 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
3 weeks 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
3 weeks 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
3 weeks 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
3 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
3 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
3 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
3 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
3 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
3 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
1 month 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
1 month 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
1 month 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
1 month 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
fromRealpython
1 month 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
1 month 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
1 month 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
1 month 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
1 month 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
1 month 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
1 month 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
1 month 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
1 month 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
1 month 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
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
[ Load more ]