Home | History | Annotate | Download | only in python2.7

Lines Matching refs:object

10 a thread-local object and use its attributes:
17 You can also access the local-object's dictionary:
50 Of course, values you get from a local object, including a __dict__
71 called each time the local object is used in a separate thread. This
74 Now if we create a local object:
110 AttributeError: 'MyLocal' object has no attribute 'color'
148 class _localbase(object):
152 self = object.__new__(cls)
154 object.__setattr__(self, '_local__key', key)
155 object.__setattr__(self, '_local__args', (args, kw))
156 object.__setattr__(self, '_local__lock', RLock())
158 if (args or kw) and (cls.__init__ is object.__init__):
164 dict = object.__getattribute__(self, '__dict__')
170 key = object.__getattribute__(self, '_local__key')
175 object.__setattr__(self, '__dict__', d)
180 if cls.__init__ is not object.__init__:
181 args, kw = object.__getattribute__(self, '_local__args')
184 object.__setattr__(self, '__dict__', d)
189 lock = object.__getattribute__(self, '_local__lock')
193 return object.__getattribute__(self, name)
200 "%r object attribute '__dict__' is read-only"
202 lock = object.__getattribute__(self, '_local__lock')
206 return object.__setattr__(self, name, value)
213 "%r object attribute '__dict__' is read-only"
215 lock = object.__getattribute__(self, '_local__lock')
219 return object.__delattr__(self, name)
226 key = object.__getattribute__(self, '_local__key')