This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ghazel
Recipients benjamin.peterson, ghazel
Date 2008-10-04.23:31:41
SpamBayes Score 2.226381e-06
Marked as misclassified No
Message-id <1223163103.75.0.307806749818.issue4034@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2008-10-04 23:31:43ghazelsetrecipients: + ghazel, benjamin.peterson
2008-10-04 23:31:43ghazelsetmessageid: <1223163103.75.0.307806749818.issue4034@psf.upfronthosting.co.za>
2008-10-04 23:31:42ghazellinkissue4034 messages
2008-10-04 23:31:42ghazelcreate