Antoine Pitrou <pit...@free.fr> added the comment:

I'm not sure why that is. Note that you can still set and get arbitrary 
attributes, so there must be a dict somewhere, but it isn't exposed. Also, 
there wasn't any significant change in StringIO in the 3.1 line.
Benjamin, do you have any idea?

>>> s = io.StringIO()
>>> s.x = 5
>>> s.x
5
>>> s.__dict__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: '_io.StringIO' object has no attribute '__dict__'

----------
nosy: +amaury.forgeotdarc, benjamin.peterson, pitrou
versions: +Python 3.2, Python 3.3 -Python 3.1

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12878>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to