'Returns a comma-separated list for the given list of parts.
The format is, e.g., "A, B and C", "A and B" or just "A" for lists
of size 1.'

def list(self, parts):

    _ = self.translate
    if (len(parts) == 0):
        return ''
    if (len(parts) == 1):
        return parts[0]
    comma = (u('    \\u0648    ') if self.code.startswith('fa') else u(',    '))
    return (_('%(commas)s    and    %(last)s') % {'commas': comma.join(parts[:(-1)]), 'last': parts[(len(parts) - 1)]})
