#python

[ follow ]
#animal-rescue
#ruff
fromPythonmorsels
3 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
Software development
fromZero To Mastery
3 days ago

[September 2025] Python Monthly Newsletter | Zero To Mastery

September 2025 Python updates highlight a new documentary, authoritative language rankings, type checker evaluations, feature flag guidance, and REPL customization in Python 3.14.
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.
Software development
fromMicrosoft for Python Developers Blog
6 days ago

Simplifying Resource Management in mssql-python through Context Manager - Microsoft for Python Developers Blog

mssql‑python adds context manager support for connections and cursors, enabling automatic resource cleanup and safer, cleaner SQL Server and Azure SQL interactions in Python.
Artificial intelligence
fromNature
1 week ago

Python, the movie! The origin story of the programming language comes to the silver screen

NumPy standardized numeric array handling in Python, enabling scientific computing and AI and driving widespread adoption of Python for numerical and data-science libraries.
#machine-learning
fromThe JetBrains Blog
1 week ago
Python

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.
fromData School
1 week ago
Books

Book preview: Master Machine Learning with scikit-learn

Master Machine Learning with scikit-learn is a near-complete book adapting a four-year course to train novices into skilled practitioners; first three chapters available for download.
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 - Real Python

Use Python's .strip(), .lstrip(), .rstrip() to remove whitespace or specified characters from string ends; use .removeprefix()/.removesuffix() for exact sequences.
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
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.
#fastapi
fromRealpython
1 week ago
Web frameworks

Get Started With FastAPI - Real Python

FastAPI provides a fast, developer-friendly Python web framework using type hints for automatic validation, serialization, interactive docs, and built-in features that reduce API boilerplate.
fromThe JetBrains Blog
1 month ago
Web frameworks

The Most Popular Python Frameworks and Libraries in 2025 | The PyCharm Blog

FastAPI is a modern, high-performance, type-safe, asynchronous Python framework ideal for building fast APIs and deploying ML models with auto-generated documentation.
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.
#web-frameworks
#repl
#type-hints
#asyncio
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
fromGrahamdumpleton
3 weeks ago

Status of wrapt (September 2025) - Graham Dumpleton

Back then, constructing decorators using function closures had various short comings and the resulting wrappers didn't preserve introspection and various other attributes associated with the wrapped function. Many of these issues have been resolved in updates to Python and the functools.wraps helper function, but wrapt based decorators were still useful for certain use cases such as being able to create a decorator where you could work out whether it was applied to a function, instance method, class method or even a class.
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.
#dictionaries
#string-splitting
fromRealpython
3 weeks ago

The Python Documentary Celebrates History While Developer Surveys Celebrate Python - Real Python

At the end of August, Python: The Documentary premiered on YouTube, where you can watch it for free. It's an 84-minute film tracing Python's journey from Amsterdam side project to the world's most popular programming language: Produced by CultRepo (formerly Honeypot) and directed by Ida Bechtle, the documentary explores Python's evolution and the community that shaped it. It features Guido van Rossum and key contributors like Mariatta and recent Real Python Podcast guest, Travis Oliphant. The documentary also highlights the important role of PyLadies and addresses controversial topics including the Python 2 to 3 transition.
Software development
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
fromRealpython
4 weeks ago

uv vs pip: Managing Python Packages and Dependencies Quiz - Real Python

Choose between pip and uv by weighing install speed, dependency locking, project-level management, and suitability for specific environments and workflows.
#pytest
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.
Software development
fromRealpython
1 month ago

Deep vs Shallow Copies in Python Quiz - Real Python

Practice deep and shallow copying in Python, including assignment semantics, object identity, nested and user-defined object copying, plus writing and customizing copy helpers.
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
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.
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
Artificial intelligence
fromPythonshow
2 months ago

54 - Neural Networks and Data Visualization with Nicolas Rougier

Nicolas Rougier applies computational models, neural networks, and Python-based visualization tools like Glumpy and VisPy to study the brain and neurodegenerative diseases.
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.
#docstrings
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.
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
JavaScript
fromTreehouse Blog
1 month ago

Python vs. JavaScript Comparison for 2025

Knowledge of JavaScript makes learning Python easier because core programming concepts and data types are similar, with syntax and style differences to adjust to.
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.
Python
fromPythonbytes
1 month ago

Auto-activate Python virtual environments for any project

Astral is enhancing Python packaging and management tools for developers.
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.
fromThe Hacker News
1 month ago

Malicious PyPI and npm Packages Discovered Exploiting Dependencies in Supply Chain Attacks

The termncolor package and its malicious dependency colorinal highlight the increasing sophistication of attacks targeting software repositories, enabling attackers to achieve remote code execution and system persistence.
Information security
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.
#object-oriented-programming
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.
#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.
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
fromQuansight
1 month ago

Support for ABI3 packages in conda!

Point72 and Quansight funded ABI3 packages for better compatibility in the conda ecosystem.
fromRealpython
1 month ago

Episode #260: Harnessing the Power of Python Polars - The Real Python Podcast

Polars offers significant speed advantages, particularly in data projects when compared to pandas, making it an optimal choice for performance-centric applications.
Python
fromMicrosoft for Python Developers Blog
1 month ago

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

The Python Environments extension continued to receive bug fixes and improvements as part of the controlled roll-out currently available to 20% of Stable users.
Python
fromMouse Vs Python
1 month ago

Python 101: Reading TOML with Python - Mouse Vs Python

TOML (Tom's Obvious Minimal Language) is a configuration format adopted widely in Python development, especially useful in popular Python packages which use pyproject.toml.
Python
Python
fromThe Hacker News
1 month ago

Webinar: How to Stop Python Supply Chain Attacks-and the Expert Tools You Need

Python packages harbor risks due to rising supply chain attacks, notably through various exploitation techniques like typo-squatting and repo-jacking.
fromPythoninsider
1 month ago
Python

Python 3.13.6

Python 3.13.6 is the latest release, featuring new features, optimizations, and around 200 bugfixes since the previous version.
#mixin-classes
Python
fromHackernoon
8 years ago

5 Python Libraries I Wish I'd Found Sooner | HackerNoon

Five Python libraries can drastically improve data processing efficiency and debugging experience.
Python
fromPycoders
1 month ago

PyCoder's Weekly | Issue #693

Postgres maintenance helps prevent performance issues in Python apps through regular monitoring and optimization practices.
fromHackernoon
2 years ago

Pandas vs Polars in 2025: Choosing the Best Python Tool for Big Data | HackerNoon

Pandas is a Python library used for data analysis and manipulation on labeled datasets. The core mission of the Pandas development team is to be the fundamental high-level building block for practical, real-world data analysis in Python. It provides tools and methods for aligning, merging, transforming, and managing data from various persistent stores, positioning itself as the definitive tool for data analysis in Python.
Python
fromRealpython
1 month ago

Exploring Python T-Strings - Real Python

Python 3.14's t-strings allow you to intercept and transform input values before assembling them into a final representation.
Python
fromRealpython
1 month ago

Mastering While Loops Quiz - Real Python

This quiz will allow participants to practice indefinite iteration using the Python while loop, covering basic and complex while loops along with interrupting loop execution.
Python
Python
fromInfoWorld
1 month ago

Python popularity boosted by AI coding assistants - Tiobe

Python reached its highest historical rating in the Tiobe index, boosted by AI coding assistants.
Python
fromRealpython
1 month ago

Skip Ahead in Loops With Python's Continue Keyword - Real Python

The continue keyword in loops jumps to the next iteration, skipping any code after it in the loop body.
fromRealpython
1 month ago

Build a Scalable Flask Web Project From Scratch Quiz - Real Python

The quiz allows participants to test their knowledge of Flask application development through 9 questions related to views, blueprints, and application factory patterns.
Web frameworks
fromRealpython
1 month ago

Introduction to Web Scraping With Python Quiz - Real Python

This quiz consists of seven questions that test knowledge on core concepts of web scraping using Python, focusing on Beautiful Soup and MechanicalSoup.
Web development
Python
fromRealpython
1 month ago

Working With Python's Built-in Exceptions Quiz - Real Python

The interactive quiz tests knowledge of Python's built-in exceptions and error handling.
Python
fromRealpython
1 month ago

Python Namespace Packages Quiz - Real Python

Python's namespace packages enable modular package organization across directories.
Web development
fromMouse Vs Python
2 months ago

Creating a Simple XML Editor in Your Terminal with Python and Textual - Mouse Vs Python

Transitioning Boomslang from wxPython to Textual creates a functional XML viewer and editor for the terminal.
fromReuven Lerner
2 months ago

How to conference

Make sure your badge has your name facing out, so that people can read it. Euro Python has, for several years, had two-sided badges to ensure that your name is visible even if (when) it turns around, which is great.
[ Load more ]