PIPraise Izuagieinizu.hashnode.dev·Sep 30, 2025 · 12 min readPython Metaclasses (Metaproramming)Introduction Metaprogramming involves programs treating themselves as data. This implies they can introspect/generate/modify themselves. There are two broad classes of metaprogramming. One is introspection-oriented, where the focus is on inspecting o...00
PIPraise Izuagieinizu.hashnode.dev·Oct 5, 2023 · 6 min readDescriptors in PythonNOTE: This article assumes basic familiarity with object-oriented programming in Python. A descriptor is an object that hooks into attribute retrievals, and possibly updates and deletes, on another object. This is a way to fully "own the dot (.) oper...00
PIPraise Izuagieinizu.hashnode.dev·Sep 6, 2023 · 4 min readCircular Imports in PythonTo understand circular imports, let's take a brief look at what happens when you import a module. On reaching an import module_name statement, the following steps are done by the interpreter. (This is a rough version of what happens.) a.) It searches...00
PIPraise Izuagieinizu.hashnode.dev·Aug 12, 2023 · 5 min readDjango's transactions: A high-level overviewAtomicity Atomicity ensures that for a database (DB) operation with a set of queries, any evaluated query (a query that leads to the database being "touched") that raises a DatabaseError (or any of its subclasses like django.db.utils.IntegrityError) ...00