#python

[ follow ]
fromArmin Ronacher's Thoughts and Writings
19 hours ago

From Async/Await to Virtual Threads

The introduction of async/await in Python has exposed many more developers to concurrent programming, making the problem of concurrency more visible and approachable. However, it also involves complex internal machinery and requires developers to adapt to colored functions, which can complicate usage.
Python
#programming
#software-development
#textual
#data-science
#development-tools
#til
fromPythonmorsels
3 days ago

Don't call dunder methods

Dunder methods, or double-underscore methods, serve as hooks for customizing Python behavior, allowing programmers to define or modify functionalities like equality and comparison.
Python
#inheritance
fromRealpython
4 days ago

Exploring Python Closures: Examples and Use Cases - Real Python

In Python, a closure is typically a function defined inside another function that grabs the objects defined in its enclosing scope and associates them with the inner function.
Python
#sqlite
fromThepythoncodingstack
1 week ago

Do You Really Know How `or` And `and` Work in Python?

In Python, every object is either truthy or falsy. When using the built-in bool(), truthy objects return True and falsy objects return False.
Python
#ai-development
fromHackernoon
3 months ago
Artificial intelligence

Why Most AI Agents Fail in Production (And How to Build Ones That Don't) | HackerNoon

fromHackernoon
3 months ago
Artificial intelligence

Why Most AI Agents Fail in Production (And How to Build Ones That Don't) | HackerNoon

#cpython
#community-engagement
fromNedbatchelder
1 week ago

2048: iterators and iterables

Using range() allows for the creation of reusable iterables, while reversed() creates a non-reusable iterator, leading to potential iteration issues in nested loops.
#coding
fromRealpython
3 weeks ago
Education

Episode #256: Solving Problems and Saving Time in Chemistry With Python - The Real Python Podcast

fromRealpython
3 weeks ago
Education

Episode #256: Solving Problems and Saving Time in Chemistry With Python - The Real Python Podcast

#scala
fromMedium
2 weeks ago
Web development

End-to-End Setup for Scala Pipeline and CI/CD on Windows for Python Developers

fromMedium
2 weeks ago
Web development

End-to-End Setup for Scala Pipeline and CI/CD on Windows for Python Developers

fromPybites
2 weeks ago

From SQL To SQLModel: A Cleaner Way To Work With Databases In Python - Pybites

SQLModel is a library for interacting with databases through Python objects and type annotations, eliminating the need to write direct SQL queries.
Python
#visual-studio-code
fromRealpython
2 weeks ago

Episode #257: Comparing Real-World Python Performance Against Big O - The Real Python Podcast

The task coded in Go optimized from O(n²) to O(n) contrasts with Python, questioning whether an interpreted language can match the performance of a compiled one.
Python
fromSitePoint Forums | Web Development & Design Community
2 weeks ago

I cannot deploy my web service no matter what!I am doing a simple Python-based project with a basic frontend. it never seems to get deployed at all!

The executable gunicorn could not be found, despite being listed in requirements.txt and confirmed committed and pushed.
Python
fromRealpython
2 weeks ago

What Is Python's __init__.py For? - Real Python

The special file __init__.py serves as a marker to indicate that its containing directory is a regular package. When people talk about a package in Python, they generally mean a regular package.
Python
fromPycoders
2 weeks ago

PyCoder's Weekly | Issue #689

The Gang of Four design patterns specify object-oriented solutions to common issues in code, yet Python lacks many of the problems these solutions address.
Python
#development
#static-type-checking
#software-release
fromPythonSpeed
3 weeks ago

500 faster: Four different ways to speed up your code

Speeding up code can be achieved through various practices: Efficiency eliminates wasteful calculations, Compilation leverages compiled languages, Parallelism utilizes multiple CPU cores, and Process enhances development methods.
Python
fromRealpython
3 weeks ago

Python 3.14 Preview: Template Strings (T-Strings) - Real Python

String templates are strings containing placeholders that can be populated with specific values dynamically at runtime, used for generating textual content.
Python
fromMouse Vs Python
3 weeks ago

Creating a Website with Sphinx and Markdown - Mouse Vs Python

To create a barebones Sphinx site, run the command sphinx-quickstart NAME_OF_SITE_FOLDER inside your virtual environment. It will ask you a series of questions.
Python
fromPythonbytes
3 weeks ago

Motivation time

Trey Hunter has compiled a comprehensive list of cheat sheet articles on his Python Morsels blog, offering valuable resources for Python developers looking to enhance their skills.
Python
#machine-learning
fromInfoWorld
4 weeks ago

Google touts new Python client library for Data Commons

Google's newly launched Python client library for Data Commons helps developers easily query and integrate statistical data from over 200 datasets, supporting custom instances.
Python
fromRealpython
4 weeks ago

Episode #255: Structuring Python Scripts & Exciting Non-LLM Software Trends - The Real Python Podcast

The structure of your Python script should include inline metadata as defined in PEP 723 to facilitate automatic environment creation and dependency management.
Python
fromInfoWorld
1 month ago

Pyrefly and Ty: Two new Rust-powered Python type-checking tools compared

Modern language tooling demands a real-time feedback loop that Python can't always deliver at the speed required. Rust fills that gap.
Python
fromPycoders
1 month ago

PyCoder's Weekly | Issue #687

Avoid performance regressions in your Python app by staying on top of Postgres maintenance. This monthly checklist outlines what to monitor, how to catch slow queries early.
Python
fromRealpython
1 month ago

Starting With DuckDB and Python - Real Python

DuckDB provides a powerful, seamless way to manage large datasets in Python, utilizing OLAP optimization for enhanced data handling and query capabilities.
Data science
fromPythonbytes
1 month ago

Python Language Summit 2025 Highlights

The Python Language Summit led at PyCon highlighted key discussions among Python developers, shaping the future trajectory and addressing security concerns in the community.
Python
fromTalkpython
1 month ago

New Theme Song: Served In A Flask

Back in the early days of Talk Python To Me, the original theme song by Smixx became iconic, but I had to remove it. Now, I'm excited to announce a new theme song that captures our tech journey and the evolution of Python! This new song, 'Served In A Flask', involves references to moving from Pyramid to Quart, embracing modern Python concepts like Pydantic and async/await.
Music
fromThe Hacker News
1 month ago

Malicious PyPI Package Masquerades as Chimera Module to Steal AWS, CI/CD, and macOS Data

Cybersecurity researchers have discovered a malicious package on the Python Package Index (PyPI) repository that's capable of harvesting sensitive developer-related information, such as credentials, configuration data, and environment variables, among others.
Growth hacking
fromRealpython
1 month ago

Episode #253: Starting With Marimo Notebooks & Python App Config Management - The Real Python Podcast

Marimo notebooks provide an innovative approach to interactivity in coding, featuring sandboxing for environment management and enabling reproducibility in sharing notebooks.
Python
fromPeterbe
1 month ago

A Python dict that can report which keys you did not use - Peterbe.com

For testing large Python objects, ensure you're unit testing everything retrieved, especially when data in reports doesn't match the database query.
Django
fromTalkpython
1 month ago

Deep Dives Complete: 600K Words of Talk Python Insights

All episodes of the Talk Python To Me podcast now feature comprehensive deep dive analyses to enhance learning.
Deep dives total 600,000 words, providing 50 hours of reading resources for podcast listeners.
Podcast
fromPython GUIs
1 month ago

PyQt6, PySide6 Books - Create GUI Applications with Python & Qt, 6th Edition

The 6th edition of 'Create GUI Applications with Python & Qt' updates the content for PyQt6 & PySide6, incorporating newer Python features and extended examples.
Django
fromThe JetBrains Blog
1 month ago

Faster Python: Concurrency in async/await and threading | The PyCharm Blog

In programming, multithreading refers to the ability of a program to execute multiple sequential tasks concurrently. However, multithreading in Python is limited because of the Global Interpreter Lock (GIL).
Cooking
fromPythonbytes
1 month ago
DevOps

Stop with .folders in my ~/

Proper app data storage ensures user data is secure and inaccessible to end users.
fromMedium
2 months ago

Build Multi-Agentic AI Agents with AWS Bedrock from Scratch..

Create a multi-agent system using AWS Bedrock and Lambda functions, enabling agents to communicate and respond based on user inquiries.
Artificial intelligence
fromeLearning Industry
1 month ago

7 Ways To Supercharge Your eLearning Workflow With VBA And Python Automation

VBA and Python significantly enhance efficiency in eLearning through automation.
Combining VBA and Python can streamline workflows and reduce errors in educational content development.
Online learning
fromMouse Vs Python
1 month ago

Parsing XML Comments with Python - Mouse Vs Python

The key point here is to create an instance of ET.XMLParser and set insert_comments to True. Then the code will work.
Python
fromRealpython
1 month ago

Python Project: Build a Word Count Command-Line App - Real Python

The word count command (wc) is a foundational utility for counting lines, words, and bytes in files. This exercise explores its design via Python.
Python
[ Load more ]