sys.__dict__

Here are the examples of the python api sys.__dict__ taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

Example 1

Project: imagrium Source File: warnings.py
Function: set_default
    def setdefault(self, key, default=None):
        if key not in self:
            sys.__dict__[key] = default
        return self[key]

Example 2

Project: imagrium Source File: warnings.py
Function: contains
    def __contains__(self, key):
        return key in sys.__dict__