Python

[ follow ]
Python
fromPycoders
16 hours 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
18 hours 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.
#type-hints
#uv
fromStreamHacker
16 hours 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
1 day 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
4 days 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
4 days 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
4 days 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
6 days 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
fromPycoders
6 days ago

PyCoder's Weekly | Issue #698

Python ecosystem updates cover building durable MCP servers and remote MCP patterns, async usage trade-offs, testing stdout/stderr, REPL color customization, version history, and security releases.
Python
fromRealpython
6 days 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
6 days 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
6 days 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 week 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 week 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 week 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-314
Python
fromPythonmorsels
1 week 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
fromPythonshow
2 weeks ago

55 - The Python Documentary with Paul Everitt

In this episode, we have special guest Paul Everitt on the show to talk about the new Python Documentary that came our last week.
Python
fromMouse Vs Python
1 week 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 week 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 week 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 week 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
3 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
2 weeks 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
3 weeks 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
3 weeks 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
3 weeks 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
3 weeks 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
3 weeks 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
3 weeks 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
3 weeks 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
3 weeks 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
3 weeks 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
3 weeks 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
3 weeks ago

Deep vs Shallow Copies in Python - Real Python

Understanding how to copy objects in Python is essential for effective programming.
fromThe Hacker News
4 weeks 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
4 weeks 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
4 weeks 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.
fromPython Software Foundation Blog
4 weeks ago

The 2024 Python Developer Survey Results are here!

The eighth official annual Python Developers Survey involved over 30,000 Python developers from nearly 200 countries, providing insights into the language’s ecosystem.
Python
Python
fromBerlin Startup Jobs
4 weeks ago

Job Vacancy: Backend Engineer (Python) (m/w/d) // GAIA | IT / Software Development Jobs | Berlin Startup Jobs

GAIA is transforming the legal sector through AI-driven automation for legal professionals.
Looking for a Python Developer to enhance backend systems for legal tech.
Python
fromPythonbytes
4 weeks ago

Auto-activate Python virtual environments for any project

Astral is enhancing Python packaging and management tools for developers.
fromMade With Mu
1 month ago

RIP Mu

Mu's core maintainers have decided to retire the project due to reduced time and resources, with many alternatives available in the beginner coding environment.
Python
Python
fromInfoWorld
1 month ago

The truth about Python's AI-powered popularity surge

Python is gaining popularity due to its integration with AI, ease of use, and new features like editable installs and improved type hinting.
fromRealpython
1 month ago

Episode #261: Selecting Inheritance or Composition in Python - The Real Python Podcast

When tackling object-oriented programming problems, one must choose between inheritance and composition, as each has distinct trade-offs. Composition often leads to more flexible and reusable code.
Python
Python
fromTest & Code
1 month ago

Test & Code | 238: So Long, and Thanks for All the Fish

The podcast journey spanned ten enjoyable years, focusing on software development and testing.
#programming
Python
fromPythoninsider
1 month ago

Python 3.14.0rc2

Python 3.14.0rc2 is released with a crucial bug fix affecting .pyc files, leading to a third release candidate before the final release.
fromPython Software Foundation Blog
1 month ago

Announcing the PSF Board Candidates for 2025!

The board election for the PSF this year features four seats open, with nominations running from July 29 to August 12, and voting from September 2 to September 16.
Python
fromwww.tensorflow.org
1 month ago

Why Your tf.function Isn't Working the Way You Think (and How to Fix It)

The outputs of a tf.function must be return values, and side effects may behave unexpectedly, executing only for the first call with a set of inputs.
Python
Python
fromAri Lamstein
1 month ago

Join Me Tonight for a Hands-On Streamlit Workshop!

I'm excited to announce that I'll be running a live workshop tonight on Streamlit-the Python framework that makes it easy to build interactive web apps for data projects.
This session i..
fromHackernoon
2 years ago

3 Ways to Easily Visualize Keras Machine Learning Models | HackerNoon

Visualizing complex Keras models can significantly enhance understanding of model architecture, making it easier to track changes and debug code.
Python
[ Load more ]