Hi Armin, > Isn't it `ctypes.addressof(flag)`? good idea; didn't think of that as addressof is not part of the public C interface, but I can get hold of the python callable in the normal way. Thanks, Wim -- WLavrijsen at lbl.gov -- +1 (510) 486 6411 -- www.lavrijsen.net