CircuitPython/uselect.py

changeset 7
e336d6afc5a6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/uselect.py	Thu Aug 29 19:05:05 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