'In the usual case, use ParseResponse (or ParseFile) to create new
HTMLForm objects.
action: full (absolute URI) form action
method: "GET" or "POST"
enctype: form transfer encoding MIME type
name: name of form
attrs: dictionary mapping original HTML form attributes to their values'

def __init__(self, action, method='GET', enctype=None, name=None, attrs=None, request_class=urllib2.Request, forms=None, labels=None, id_to_labels=None, backwards_compat=True):

    self.action = action
    self.method = method
    self.enctype = (enctype or 'application/x-www-form-urlencoded')
    self.name = name
    if (attrs is not None):
        self.attrs = attrs.copy()
    else:
        self.attrs = {}
    self.controls = []
    self._request_class = request_class
    self._forms = forms
    self._labels = labels
    self._id_to_labels = id_to_labels
    self.backwards_compat = backwards_compat
    self._urlunparse = urlparse.urlunparse
    self._urlparse = urlparse.urlparse
