Tag

attribute-access

1 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Jan 6, 2025 · Fundamentals

Python Introspection: Exploring Object Structure and Dynamic Programming

Python introspection allows programs to examine their own structure at runtime, enabling dynamic manipulation of objects, classes, and methods through built-in functions and modules.

MetaclassesPythonattribute-access
0 likes · 5 min read
Python Introspection: Exploring Object Structure and Dynamic Programming
Python Programming Learning Circle
Python Programming Learning Circle
Feb 8, 2020 · Fundamentals

Common Python Pitfalls and How to Avoid Them

This article surveys typical Python traps—including UnboundLocalError, mutable default arguments, in‑place versus out‑of‑place updates, tuple syntax, shared mutable containers, list mutation during iteration, closure late binding, __del__ pitfalls, import inconsistencies, version differences, operator quirks, attribute magic methods, and the GIL—explaining why they occur and offering safe alternatives.

@ImportClosuresGIL
0 likes · 12 min read
Common Python Pitfalls and How to Avoid Them