def _splpy_all_ports_ready(callable_):
if hasattr(type(callable_), '<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>return callable_.all_ports_ready()<EOL><DEDENT>except:<EOL><INDENT>ei = sys.exc_info()<EOL>if streamsx._streams._runtime._call_exit(callable_, ei):<EOL><INDENT>return None<EOL><DEDENT>raise e1[<NUM_LIT:1>]<EOL><DEDENT><DEDENT>return None<EOL>
Call all_ports_ready for a primitive operator.