#python

[ follow ]
Python
fromThepythoncodingstack
3 days ago

Impostors * How Even The Python Docs Get This Wrong* * [Club]

zip(), enumerate(), and range() are common Python loop tools; mastering them enables exploring itertools, and examples of range() in for loops can be misleading.
fromRubyflow
5 days ago

Resolving the 'rest_framework' Module Not Found Error

The ModuleNotFoundError: No module named 'rest_framework' is a common issue faced by developers working with Django REST Framework (DRF).
fromRealpython
1 week ago

What Can I Do With Python? Quiz - Real Python

How well do you know the different areas where Python shines? In this quiz, you'll revisit web apps and APIs, GUI apps, CLI tools, machine learning, and more. You'll also check what Python isn't suited for and which alternatives work better. Get ready to explore the wide scope of what you can do with Python.
Python
fromInfoWorld
1 week ago

How to use Python dataclasses

Everything in Python is an object, or so the saying goes. If you want to create your own custom objects, with their own properties and methods, you use Python's class object to do it. But creating classes in Python sometimes means writing loads of repetitive, boilerplate code; for example, to set up the class instance from the parameters passed to it or to create common functions like comparison operators.
Python
#pandas
Python
fromThepythoncodingstack
1 week ago

Are Tuples More Like Lists or Strings? And Why We Don't Really Care * [Club]

Choose Python data types based on semantic meaning and intended usage, not superficial similarity; tuples serve different roles than lists or strings in code design.
fromThepythoncodingstack
2 weeks ago

Creating a Singleton Class in Python And Why You (Probably) Don't Need It

If you spend long enough in the programming world, you'll come across the term singleton at some point. And if you hadn't seen this term yet, well, now you have! In Python, you don't need singleton classes. Almost never. But creating one is a great exercise in understanding how Python creates objects. And discussing alternatives to a singleton class helps you explore other aspects of Python.
Python
Python
frompythontest.com
2 weeks ago

Python lazy imports you can use today | PythonTest

Use explicit lazy imports now to defer heavy or side-effect-prone module loading, improving startup performance across current Python versions.
Books
fromTalkpython
2 weeks ago

Talk Python in Production Story

A decade-long website growth produced many features and users; a detailed account explains production lessons and how those differ from typical Python DevOps practices.
Python
fromRealpython
2 weeks ago

How to Use Python: Your First Steps - Real Python

Python installs on Windows, macOS, and Linux, offers a readable syntax, built-in data types, error handling, interactive REPL, and tools to start programming effectively.
Python
fromRealpython
2 weeks ago

How to Use Python: Your First Steps Quiz - Real Python

Practice Python fundamentals—variables, keywords, strings, and error recognition—through an eight-question, untimed quiz with scored feedback.
#visual-studio-code
Python
fromPeterbe
2 weeks 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.
#data-science
fromTalkpython
3 weeks ago
Software development

Data Sci Tips and Tricks from CodeCut.ai

Micro-sized, practical Python and data-science snippets plus modern tools and disciplined configuration accelerate reproducible workflows and reduce friction for day-to-day data work.
fromTechzine Global
2 months ago
Python

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.
#functions
#ruff
#string-formatting
fromRealpython
3 weeks 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
#animal-rescue
fromPythonmorsels
4 weeks 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
4 weeks 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
1 month 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
1 month 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 month 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 month 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 month 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 month 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 month 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 month 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 month 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 month 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 month 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
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
fromGrahamdumpleton
1 month 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.
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
#string-splitting
fromRealpython
1 month 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
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
fromRealpython
1 month 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.
fromRealpython
2 months 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 months 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
3 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
2 months 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
2 months 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
2 months 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
2 months 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
2 months 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
2 months ago

Deep vs Shallow Copies in Python - Real Python

Understanding how to copy objects in Python is essential for effective programming.
fromThe Hacker News
2 months 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
2 months 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.
fromRealpython
2 months 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
fromInfoWorld
2 months 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
2 months 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
2 months 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
2 months ago

Support for ABI3 packages in conda!

Point72 and Quansight funded ABI3 packages for better compatibility in the conda ecosystem.
fromRealpython
2 months 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
fromMouse Vs Python
2 months 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
2 months 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
2 months 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
2 months 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
[ Load more ]