Decorater added the comment:
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.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27527>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com