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 gvanrossum
Recipients Max von Tettenborn, gvanrossum, vstinner, yselivanov
Date 2016-10-07.14:35:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAP7+vJ+KdYcnRozGPr0MJpKus_jXkoU0GjVH-1kWj+sw_qM2BQ@mail.gmail.com>
In-reply-to <CAP7+vJKO6BHVU4Y8xdSJewN6bX=XPQZS18ghL6ewExc_9i3Osg@mail.gmail.com>
Content
I've meditated on this and I've changed my mind. A task that awaits
itself is so obviously not following the task protocol that it should
be shot on sight. No exceptions. (Only the task itself should ever set
the result or exception, and *only* by returning or raising. So the
only way a task waiting for itself could be unblocked is through
cancellation, and there are better ways to wait forever until
cancelled.)

IOW @1st1 I think it's okay to detect this and raise an exception.
History
Date User Action Args
2016-10-07 14:35:47gvanrossumsetrecipients: + gvanrossum, vstinner, yselivanov, Max von Tettenborn
2016-10-07 14:35:47gvanrossumlinkissue27972 messages
2016-10-07 14:35:47gvanrossumcreate