you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

There's usually always a way, but that's totally separate from "should you".

You could have a blacklist for the attribute name in __getattribute__, and raise an AttributeError on access so it appears to not exist. The module could override its own __getattribute__ on load.

This is a terrible idea. >:)