parameters: (form)
docstring: Dump the contents of a form as HTML.
docstring_summary: Dump the contents of a form as HTML.
docstring_tokens: Dump the contents of a form as HTML .
function: def print_form(form):
      """Dump the contents of a form as HTML."""
      keys = sorted(form.keys())
      print()
      print("<H3>Form Contents:</H3>")
      if not keys:
          print("<P>No form fields.")
      print("<DL>")
      for key in keys:
          print("<DT>" + html.escape(key) + ":", end=' ')
          value = form[key]
          print("<i>" + html.escape(repr(type(value))) + "</i>")
          print("<DD>" + html.escape(repr(value)))
      print("</DL>")
      print()
function_tokens: def print_form ( form ) : keys = sorted ( form . keys ( ) ) print ( ) print ( "<H3>Form Contents:</H3>" ) if not keys : print ( "<P>No form fields." ) print ( "<DL>" ) for key in keys : print ( "<DT>" + html . escape ( key ) + ":" , end = ' ' ) value = form [ key ] print ( "<i>" + html . escape ( repr ( type ( value ) ) ) + "</i>" ) print ( "<DD>" + html . escape ( repr ( value ) ) ) print ( "</DL>" ) print ( )