summaryrefslogtreecommitdiff
path: root/tests/extmod/uselect_poll_basic.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2018-10-20 12:36:48 +0300
committerDamien George <damien.p.george@gmail.com>2018-10-23 11:50:39 +1100
commitaf5b509c7533bdc86cef923d53fd5e2daf692036 (patch)
tree95d35b95a001e51570e46983d13965d668d8cf01 /tests/extmod/uselect_poll_basic.py
parent42d0a281171cf98a291994ffad07e336b58b3fff (diff)
examples/unix/ffi_example: Clean up and update the ffi example.
1. Use uctypes.bytearray_at(). Implementation of the "ffi" module predates that of "uctypes", so initially some convenience functions to access memory were added to ffi. Later, they landed in uctypes (which follows CPython's ctype module). So, replace undocumented experimental functions from ffi to documented ones from uctypes. 2. Use more suitable type codes for arguments (e.g. "P" (const void*) instead of "p" (void*). 3. Some better var naming. 4. Clarify some messages printed by the example.
Diffstat (limited to 'tests/extmod/uselect_poll_basic.py')
0 files changed, 0 insertions, 0 deletions