Python Snacks logo
Python Snacks
AdvertiseContact
Subscribe
  • Python Snacks
  • Topics
  • metaprogramming

metaprogramming

getattr, setattr, __new__, dynamic classes.

best-practicescomparisongeneratorscareertype hintspythonic thinkingbeginnerdecoratorsreferencedocumentationmetaprogrammingdata analysisfunctionscheat sheetdata structuresartificial intelligencetool-reviewadvancedwebtoolingworkflowstandard librarybreakdownpackagechecklistintermediateclicase-studyquick winpackagingasynccontrol flowgotchasoopdeep diveperformance
metaprogrammingmetaprogramming
+2+2
4 types of Python dunder (magic) methods you should know
Nov 27, 2024

4 types of Python dunder (magic) methods you should know

Dunder methods can change your python game significantly if you know how to leverage them correctly.

Brandon Molyneaux
Brandon Molyneaux
comparisoncomparison
+2+2
The difference between __repr__ and __str__
Nov 20, 2024

The difference between __repr__ and __str__

Understanding Python’s String Representations for Developers and Users

Brandon Molyneaux
Brandon Molyneaux
metaprogrammingmetaprogramming
+2+2
What is __name__ == "__main__"?
May 22, 2024

What is __name__ == "__main__"?

See how this can affect your Python code during run time.

Brandon Molyneaux
Brandon Molyneaux
beginnerbeginner
+2+2
Demystifying the init python file
Apr 10, 2024

Demystifying the init python file

What does the __init__ file do, and why do I need it?

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