Kaydet (Commit) 61cf780b authored tarafından Guido van Rossum's avatar Guido van Rossum

The message accompanying the TypeError exception on a readonly

attribute changed again.
üst 13d52f0b
...@@ -405,7 +405,7 @@ And more, added later. ...@@ -405,7 +405,7 @@ And more, added later.
>>> i.gi_running = 42 >>> i.gi_running = 42
Traceback (most recent call last): Traceback (most recent call last):
... ...
TypeError: 'generator' object has only read-only attributes (assign to .gi_running) TypeError: readonly attribute
>>> def g(): >>> def g():
... yield me.gi_running ... yield me.gi_running
>>> me = g() >>> me = g()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment