osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dunder variables


Hi all

I have read that one should not call dunder methods in application code.

Does the same apply to dunder variables? I am thinking of the instance 
attribute __dict__, which allows access to the contents of the instance.

I only want to read from __dict__, not update it. Is this frowned upon?

Thanks

Frank Millman