def _init_io_module():
    """List and add all the data iterators to current module."""
    plist = ctypes.POINTER(ctypes.c_void_p)()
    size = ctypes.c_uint()
    check_call(_LIB.MXListDataIters(ctypes.byref(size), ctypes.byref(plist)))
    module_obj = sys.modules[__name__]
    for i in range(size.value):
        hdl = ctypes.c_void_p(plist[i])
        dataiter = _make_io_iterator(hdl)
        setattr(module_obj, dataiter.__name__, dataiter)
def _init_io_module ( ) : plist = ctypes . POINTER ( ctypes . c_void_p ) ( ) size = ctypes . c_uint ( ) check_call ( _LIB . MXListDataIters ( ctypes . byref ( size ) , ctypes . byref ( plist ) ) ) module_obj = sys . modules [ __name__ ] for i in range ( size . value ) : hdl = ctypes . c_void_p ( plist [ i ] ) dataiter = _make_io_iterator ( hdl ) setattr ( module_obj , dataiter . __name__ , dataiter )
List and add all the data iterators to current module.