ossible (you can write "m.__dict__['a'] = 1", which defines "m.a" to be "1", but you can’t write "m.__dict__ = {}"). Modifying "__dict__" directly is not recommended. Modules built into the interpreter are written like this: "". If loaded from a file, they are written as "". uª]