Post

OnePythonTip
OnePythonTip@OnePythonTip·
hasattr checks if attribute exists. getattr gets attribute with optional default. Perfect for: - Avoiding AttributeError - Dynamic method calls - Config files - Data parsing One tip a day. Follow for more. #Python #Coding 🐍
OnePythonTip tweet media
English
0
0
0
0
Compartir