title: Create Object With Attribute Named Global
body: <p>For business logic reasons I want to be able to create an object that has an attribute named <code>global</code>. But I obviously can't just do</p>
  <pre><code>class Foo(object):
      
      def __init__(self):
          self.global = True
  </code></pre>
  <p>Because <code>global</code> is a reserved keyword that has special meaning in Python. Dynamically getting the attribute using <code>__getattr__</code> or <code>__getattribute__</code> has the same problem though. Is there anyway that I can do this, or do I have to make the attribute name <code>global_</code>?</p>
  <p>I need to be able to access the attribute directly from the object, so I can't use <code>getattr(foo, 'global')</code>.</p>