MicroPython/uselect.py

changeset 2
2c3f30af031d
diff -r afcd3f0662b1 -r 2c3f30af031d MicroPython/uselect.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MicroPython/uselect.py	Sun Aug 25 19:25:37 2019 +0200
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the def 'uselect' module.
+"""
+
+def poll():
+    pass
+
+def select(rlist, wlist, xlist, timeout=-1):
+    pass
+
+POLLIN = 1
+POLLOUT = 4
+POLLERR = 8
+POLLHUP = 16
+
+class Poll():
+    def register(self, obj, eventmask = POLLIN | POLLOUT):
+        pass
+    
+    def unregister(self, obj):
+        pass
+    
+    def modify(self, obj, eventmask):
+        pass
+    
+    def poll(self, timeout=-1):
+        pass
+    
+    def ipoll(self, timeout=-1, flags=0):
+        pass

eric ide

mercurial