Skip to content Skip to sidebar Skip to footer
Showing posts with the label Setattr

Implementing A Dict-like Object With __getattr__ And __setattr__ Functionality

I'm trying to implement a dict-like object which can be accessed/modified with __getattr__ and … Read more Implementing A Dict-like Object With __getattr__ And __setattr__ Functionality

Python Creating A Readonly Wrapper Class Without Modifying Wrapped Class

I have a base class that looks like follows: class Base: def __init__(self, prop): self… Read more Python Creating A Readonly Wrapper Class Without Modifying Wrapped Class