def __recursivly_scan_code_objects_for_ctypes(co, binaries): # ctypes scanning requires a scope wider than one bytecode # instruction, so the code resides in a separate function # for clarity. binaries.extend( __scan_code_instruction_for_ctypes( util.iterate_instructions(co)))