Tagged articles
4 articles
Page 1 of 1
Test Development Learning Exchange
Test Development Learning Exchange
Mar 16, 2024 · Fundamentals

Python Built-in Functions and Utilities

This article introduces 10 essential Python built-in functions and utilities including enumerate(), zip(), filter(), map(), sorted(), functools.partial(), itertools.combinations(), lambda, getattr()/setattr(), and reversed(), with practical code examples for each.

LambdaMAPPython
0 likes · 3 min read
Python Built-in Functions and Utilities
MaGe Linux Operations
MaGe Linux Operations
Jul 30, 2021 · Fundamentals

Unlock Python’s Hidden Attribute System: __dict__, property, and __getattr__ Explained

This article explains how Python stores object attributes in layered __dict__ structures, distinguishes class and instance attributes, demonstrates attribute lookup, shows how to modify attributes directly or via property, and introduces dynamic attribute creation using __getattr__ and related special methods.

AttributesObject-OrientedProperty
0 likes · 8 min read
Unlock Python’s Hidden Attribute System: __dict__, property, and __getattr__ Explained