youngchaos added the comment:
#!/usr/bin/env python
# coding: utf-8
import struct, asyncio, os
async def readdev(dev):
while True:
buf=os.read(dev, 480)
print([struct.unpack('llHHi', buf[i*24:(i+1)*24]) for i in
range(len(buf)//24)])
mouse=os.open('/d
New submission from youngchaos :
import struct, asyncio, os
async def readdev(dev):
while True:
buf=os.read(dev, 480)
print([struct.unpack('llHHi', buf[i*24:(i+1)*24]) for i in
range(len(buf)//24)])
mouse=os.open('/dev/input/event2', os.O_RDONLY)
kbd
Change by youngchaos :
--
components: asyncio
nosy: asvetlov, youngchaos, yselivanov
priority: normal
severity: normal
status: open
title: Run Tasks cannot Concurrent
type: behavior
versions: Python 3.7
___
Python tracker
<https://bugs.python.