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

pythonic thinking

Comprehensions, idioms, unpacking, clean code.

best-practicescomparisongeneratorscareertype hintspythonic thinkingbeginnerdecoratorsreferencedocumentationmetaprogrammingdata analysisfunctionscheat sheetdata structuresartificial intelligencetool-reviewadvancedwebsecurityOne-Offssnippettoolingworkflowstandard librarybreakdownpackagechecklisttemplateintermediateclicase-studyquick winpackagingasynccontrol flowgotchasoopdeep diveperformance
pythonic thinkingpythonic thinking
+3+3
t-strings in Python 3.14
Jul 19, 2025

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
pythonic thinkingpythonic thinking
+2+2
Exploring Python's Extended Unpacking
Nov 29, 2023

Exploring Python's Extended Unpacking

This feature that is not very well known within Python can help you manage your iterables in a clean and concise way.

Brandon Molyneaux
Brandon Molyneaux
pythonic thinkingpythonic thinking
+2+2
Python List Methods: 10 Essential Methods You Should Know
Nov 22, 2023

Python List Methods: 10 Essential Methods You Should Know

Python list methods make it simple to manage your lists—add, remove, or update elements with these built-in functions.

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