Skip to content

Tag Archives: python-object

We all know a very common drawback of Python when compared to programming languages such as C or C++. It is significantly slower and isn’t… Read More
In Python, with statement is used in exception handling to make the code cleaner and much more readable. It simplifies the management of common resources… Read More
In Python shelve you access the keys randomly. In order to access the keys randomly in python shelve we use open() function. This function works… Read More
The Python object() function returns the empty object, and the Python object takes no parameters. Syntax of Python object() For versions of Python 3.x, the… Read More
Python setattr() method is used to assign the object attribute its value.  Python setattr() Function Syntax Syntax : setattr(obj, var, val) Parameters :  obj :… Read More
Python getattr() function is used to access the attribute value of an object and also gives an option of executing the default value in case… Read More
Python hasattr() function is an inbuilt utility function, which is used to check if an object has the given named attribute and return true if… Read More

Start Your Coding Journey Now!