python doesn't work with asyncio library

ggl329 ggl329@gmail.com
Mon Feb 1 03:19:34 GMT 2021


On 2021/02/01 5:19, Marco Atzeri via Cygwin wrote:
> On 23.01.2021 23:13, Marco Atzeri wrote:
>> On 23.01.2021 22:09, ggl329 via Cygwin wrote:
>>> Hi Marco,
>>>
>>> Thank you for maintaining python related packages.
>>>
>>> I found that the updated python38 (3.8.6-2, 3.8.7-1) and python36 (3.6.12-2) don't
>>> work with asyncio library. The "Hello World!" sample in python documentation fails.
>>> Using python38 (3.8.3-1) or python36 (3.6.10-1), it succeeds.
>>> This issue prevents ipython from starting up.
>>> Could you check if this issue is reproducible on your environment?
>>>
>>> =====
>>> $ cat hello38.py
>>> # hello38.py (https://docs.python.org/3.8/library/asyncio.html)
>>> import asyncio
>>> async def main():
>>>      print('Hello ...')
>>>      await asyncio.sleep(1)
>>>      print('... World!')
>>> asyncio.run(main())
>>>
>>
>> confirmed. It looks similar to another one that I thought to have
>> solved.
>>
>> Let me work on it
>>
>> Marco
>>
> 
> can you try the attached patch and see if it solve this problem ?
> 
> Regards
> Marco

The sample script runs successfully, and ipython also works.
Thank you.

-- 
   ggl329


More information about the Cygwin mailing list