Category "magic-methods"

Should I use python magic methods directly?

I heard from one guy that you should not use magic methods directly. and I think in some use cases I would have to use magic methods directly. So experienced de

How to avoid RuntimeError while call __dict__ on module?

it is appearing in some big modules like matplotlib. For example expression : import importlib obj = importlib.import_module('matplotlib') obj_entries = obj.__d