Message74330
There seem to be some other exception type and string inconsistencies,
but they are not new to Python 2.6
>>> tb.tb_frame = None
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'traceback' object has only read-only attributes (assign
to .tb_frame)
>>> tb.tb_frame.f_locals = None
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: attribute 'f_locals' of 'frame' objects is not writable
>>> tb.tb_frame.f_globals = None
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: readonly attribute
>>> dict.clear = "foo"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't set attributes of built-in/extension type 'dict'
Should it be an AttributeError or TypeError? Should it be "read-only",
readonly", "not writable" or "can't set"?
Btw, here's the other ticket for the feature request:
http://bugs.python.org/issue1565525 |
|
Date |
User |
Action |
Args |
2008-10-04 23:31:43 | ghazel | set | recipients:
+ ghazel, benjamin.peterson |
2008-10-04 23:31:43 | ghazel | set | messageid: <1223163103.75.0.307806749818.issue4034@psf.upfronthosting.co.za> |
2008-10-04 23:31:42 | ghazel | link | issue4034 messages |
2008-10-04 23:31:42 | ghazel | create | |
|