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 Decorater
Recipients Decorater, paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-07-16.05:21:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468646479.26.0.293917004749.issue27527@psf.upfronthosting.co.za>
In-reply-to
Content
I am thinking like this example:

import asyncio

@asyncio.coroutine
def SomeCoroutine():
    print("test...")

@asyncio.coroutine
def SomeNormalFunction():
    SomeCoroutine()

Will print a warning instead I would like it to be a SyntaxError when the function is called that tries to call a coroutine that has not been yielded/awaited at all.
History
Date User Action Args
2016-07-16 05:21:19Decoratersetrecipients: + Decorater, paul.moore, tim.golden, zach.ware, steve.dower
2016-07-16 05:21:19Decoratersetmessageid: <1468646479.26.0.293917004749.issue27527@psf.upfronthosting.co.za>
2016-07-16 05:21:19Decoraterlinkissue27527 messages
2016-07-16 05:21:19Decoratercreate