ionelmc / python-cogen

Automatically exported from https://code.google.com/p/cogen
MIT License
6 stars 0 forks source link

'COGENProxy' object has no attribute '__dict__' #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
in cogen.web.async.py
---------------------------

class COGENProxy(object):

    def __str__(self):
        return repr(self.__dict__)

but COGENProxy instance hava no `__dict__` attribute.

>>> from cogen.web.async import COGENProxy
>>> dir(COGENProxy())
['__class__', '__delattr__', '__doc__', '__format__', '__getattribute__',
'__hash__', '__init__', '__module__', '__new__', '__reduce__',
'__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__slots__',
'__str__', '__subclasshook__', 'content_length', 'exception', 'operation',
'read_count', 'result']
>>> str(COGENProxy())
Module cogen.web.async:65 in __str__          view
AttributeError: 'COGENProxy' object has no attribute '__dict__'

Original issue reported on code.google.com by egteam.l...@gmail.com on 30 Jan 2010 at 1:30

GoogleCodeExporter commented 9 years ago
Fixed in trunk.

Original comment by ionel...@gmail.com on 30 Jan 2010 at 2:38