On 03/11/11 00:54, Jacob Holm wrote:
If the switch Nick describes is available as a flag on the frame objects, it would be easy to extend the traceback to show *exactly* where you entered the no-coroutine zone
Yes, the same thing occurred to me shortly after posting that.
I don't think the additional syntax is helpful,
It would help with auditing by making it possible to see whether the rules are being followed by statically examining the text, instead of having to wait for a run-time failure. However, that needs to be weighed against the two-versions problem, which I acknowledge is fairly serious.