meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
programming:python:oop [2024/01/02 10:36] niziakprogramming:python:oop [2024/01/03 11:34] (current) niziak
Line 62: Line 62:
 This is a relative of ''setattr()''. The arguments are an object and a string. The string must be the name of one of the object’s attributes. The function deletes the named attribute, provided the object allows it. For example, ''delattr(x, 'foobar')'' is equivalent to ''del x.foobar''. name need not be a Python identifier (see setattr()). This is a relative of ''setattr()''. The arguments are an object and a string. The string must be the name of one of the object’s attributes. The function deletes the named attribute, provided the object allows it. For example, ''delattr(x, 'foobar')'' is equivalent to ''del x.foobar''. name need not be a Python identifier (see setattr()).
  
 +
 +===== Object-like attribute access for nested dictionary =====
 +  * https://stackoverflow.com/questions/38034377/object-like-attribute-access-for-nested-dictionary
 +  * https://bobbyhadz.com/blog/python-use-dot-to-access-dictionary
 +  * https://github.com/frmdstryr/magicattr