I want to use NULL in python as implemented in java. I came across asyncio.windows_event
which contains the NULL
class and it works fine on windows. However, when I tried to run the same code in Ubuntu, I got the following error:
import _winapi
ModuleNotFoundError: No module named '_winapi'
I understand this supports only windows platform. Please can someone help me with Ubuntu’s equivalent where I can import NULL just as its possible for windows. In windows, you can import NULL as:
from asyncio.window_event import NULL
Thanks in advance.
2
Answers
Upon surfing the internet, I came across the python
null
package. I installed it byand import it as
and it worked just fine.
There is another one called
nulltype
. One may install it withand import it with
Although I haven't used it to test how it works I have only tried
Null
It would be nice to see the context of the problem. Why you need to use winapi NULL?
Maybe you can easly solve this with standard pythons
None
?