The message accompanying the TypeError exception on a readonly

attribute changed again.
This commit is contained in:
Guido van Rossum 2001-08-10 21:25:24 +00:00
parent 13d52f0b32
commit 61cf780b6d

View File

@ -405,7 +405,7 @@ And more, added later.
>>> i.gi_running = 42
Traceback (most recent call last):
...
TypeError: 'generator' object has only read-only attributes (assign to .gi_running)
TypeError: readonly attribute
>>> def g():
... yield me.gi_running
>>> me = g()