human
Here's a good function header given the following:
I wrote the below code

    def generateWWWAuthenticate(scheme, challenge):
        _l = []
        for (k, v) in challenge.items():
            _l.append(networkString(('%s=%s' % (nativeString(k), quoteString(nativeString(v))))))
        return '    '.join([scheme, ',    '.join(_l)])
    def quoteString(s):
        return ('"%s"' % (s.replace('\\', '\\\\').replace('"', '\\"'),))
    request.setResponseCode(401)
    for fact in self._credentialFactories:
        challenge = fact.getChallenge(request)
        request.responseHeaders.addRawHeader('www-authenticate', generateWWWAuthenticate(fact.scheme, challenge))
    if (request.method == 'HEAD'):
        return ''
    return 'Unauthorized'

What's a good function header?
assistant
#Here's a good function header.

def render(self, request):