parameters: (struct)
docstring: Sequence of path, option name, option info.
docstring_summary: Sequence of path, option name, option info.
docstring_tokens: Sequence of path option name option info .
function: def paths(struct):
      """Sequence of path, option name, option info."""
      for option_name, info in struct.items():
          the_type = info['type']
          the_field = info.get('field', option_name)
          if the_type in opts_structs:
              # E.g., the type is mongoc_crud_opts_t. Recurse.
              sub_struct = opts_structs[the_type]
              for path, sub_option_name, sub_info in paths(sub_struct):
                  yield ('%s.%s' % (the_field, path),
                         sub_option_name,
                         sub_info)
          else:
              yield the_field, option_name, info
function_tokens: def paths ( struct ) : for option_name , info in struct . items ( ) : the_type = info [ 'type' ] the_field = info . get ( 'field' , option_name ) if the_type in opts_structs : # E.g., the type is mongoc_crud_opts_t. Recurse. sub_struct = opts_structs [ the_type ] for path , sub_option_name , sub_info in paths ( sub_struct ) : yield ( '%s.%s' % ( the_field , path ) , sub_option_name , sub_info ) else : yield the_field , option_name , info