Python Snacks logo
Python Snacks
AdvertiseContact
Subscribe
  • Python Snacks
  • Topics
  • pythonic thinking

pythonic thinking

Comprehensions, idioms, unpacking, clean code.

best-practicescomparisongeneratorscareermini projecttype hintspythonic thinkingbeginnerdecoratorsreferencedocumentationconcurrencymetaprogrammingdata analysisfunctionscheat sheetcontext managersdata structuresartificial intelligencetool-reviewadvancedwebsecurityOne-Offssnippettoolingworkflowstandard librarybreakdownpackagechecklisttemplateintermediateclicase-studyquick winpackagingasynccontrol flowgotchasoopdeep diveperformance
mini projectmini project
+2+2
Automating YAML File Updates with Jinja Templates
Aug 16, 2025

Automating YAML File Updates with Jinja Templates

Use PyYAML + Jinja templating to simplify and speed up your configuration workflow

Hamna Rashid
Hamna Rashid
pythonic thinkingpythonic thinking
+2+2
Mastering timezones in Python with UTC
Aug 13, 2025

Mastering timezones in Python with UTC

This is the reason why you should use UTC for anything time-related.

Brandon Molyneaux
Brandon Molyneaux
pythonic thinkingpythonic thinking
+4+4
A Beginner’s Guide to Using OpenAI API with Python
Aug 09, 2025

A Beginner’s Guide to Using OpenAI API with Python

Learn how to connect Python to OpenAI's API and build smart workflows in minutes.

Hamna Rashid
Hamna Rashid
best-practicesbest-practices
+4+4
An Overview of Companies using the FastAPI and Django Python Web Frameworks
Jul 30, 2025

An Overview of Companies using the FastAPI and Django Python Web Frameworks

See which major tech players are using Python's top web frameworks: Django and FastAPI

Hamna Rashid
Hamna Rashid
pythonic thinkingpythonic thinking
+3+3
An Introduction to t-strings in Python 3.14
Jul 19, 2025

An Introduction to t-strings in Python 3.14

New string formatter that brings security and structure to dynamic string composition.

Hamna Rashid
Hamna Rashid
comparisoncomparison
+2+2
Running Shell Commands in Python (the right way)
Jun 25, 2025

Running Shell Commands in Python (the right way)

Leverage the subprocess module, but know there's a difference between subprocess.run() and subprocess.Popen()

Brandon Molyneaux
Brandon Molyneaux
comparisoncomparison
+2+2
Paths in Python: Comparing os.path and pathlib modules
Jan 01, 2025

Paths in Python: Comparing os.path and pathlib modules

A quick guide to simplifying file path management in Python

Brandon Molyneaux
Brandon Molyneaux
pythonic thinkingpythonic thinking
+2+2
Python = vs ==: Understanding the Key Difference Between Assignment and Equality Operators
Nov 06, 2024

Python = vs ==: Understanding the Key Difference Between Assignment and Equality Operators

Learn when to use = for assignment and == for comparison to avoid common Python mistakes

Brandon Molyneaux
Brandon Molyneaux
pythonic thinkingpythonic thinking
+2+2
The purpose of __pycache__ directory
May 29, 2024

The purpose of __pycache__ directory

And here's why you don't need to touch it (for the most part)

Brandon Molyneaux
Brandon Molyneaux
best-practicesbest-practices
+2+2
Cerberus: The One Package You Need for Data Validation
Jan 17, 2024

Cerberus: The One Package You Need for Data Validation

Plus: NumPy 2 release on the horizon, a tutorial on data cleaning, and more

Brandon Molyneaux
Brandon Molyneaux
comparisoncomparison
+2+2
The difference between Break vs Continue in Python
Jan 10, 2024

The difference between Break vs Continue in Python

Brandon Molyneaux
Brandon Molyneaux
pythonic thinkingpythonic thinking
+2+2
Using the `get` method to fetch values from a Python dictionary
Dec 13, 2023

Using the `get` method to fetch values from a Python dictionary

Here's a quick tutorial as to why you should use this versus a try and except block.

Brandon Molyneaux
Brandon Molyneaux
Become a better software engineer with Python.

Python Snacks

Become a better software engineer with Python.

Home

Posts

Authors

Account

Upgrade

Advertise

Advertise

© 2025 Python Snacks.

Privacy policy

Terms of use

Powered by beehiiv