[issue27527] Make not yielding from or awaiting a coroutine a SyntaxError

2016-07-16 Thread R. David Murray
R. David Murray added the comment: Also, fyi it was couterproductive to code this as a Windows issue...that alerted the windows experts, but it is not a windows-specific issue, so it just pinged them needlessly. Also FYI, enahancements can only go into the next feature release, so the correct

[issue27527] Make not yielding from or awaiting a coroutine a SyntaxError

2016-07-16 Thread R. David Murray
R. David Murray added the comment: It can't be a syntax error. There are legitimate reasons for calling a coroutine and then passing around the resulting object before awaiting it. -- nosy: +r.david.murray resolution: -> rejected stage: -> resolved status: open -> closed ___

[issue27527] Make not yielding from or awaiting a coroutine a SyntaxError

2016-07-15 Thread Decorater
Decorater added the comment: So to make it Error it must be : import asyncio async def SomeCoroutine(): print("test...") SomeCoroutine() -- ___ Python tracker ___

[issue27527] Make not yielding from or awaiting a coroutine a SyntaxError

2016-07-15 Thread Decorater
Decorater added the comment: Oh it does not happen if you use the asyncio.coroutine decorater but it does do RuntimeWarning if you use the async def on it. -- versions: -Python 3.4 ___ Python tracker

[issue27527] Make not yielding from or awaiting a coroutine a SyntaxError

2016-07-15 Thread Decorater
Changes by Decorater : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue27527] Make not yielding from or awaiting a coroutine a SyntaxError

2016-07-15 Thread Decorater
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 cal

[issue27527] Make not yielding from or awaiting a coroutine a SyntaxError

2016-07-15 Thread Decorater
New submission from Decorater: Currently there is a waring printed in python when you try to call a coroutine without yieling from or awaiting it but I would like it to be a SyntaxError when this happens instead. -- components: Windows messages: 270538 nosy: Decorater, paul.moore, stev