Message143348
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__' |
|
Date |
User |
Action |
Args |
2011-09-01 19:54:04 | pitrou | set | recipients:
+ pitrou, amaury.forgeotdarc, benjamin.peterson, ericp |
2011-09-01 19:54:04 | pitrou | set | messageid: <1314906844.47.0.854814157394.issue12878@psf.upfronthosting.co.za> |
2011-09-01 19:54:03 | pitrou | link | issue12878 messages |
2011-09-01 19:54:03 | pitrou | create | |
|