class_docstr: Object representing a locale.
  
  After calling one of `load_translations` or `load_gettext_translations`,
  call `get` or `get_closest` to get a Locale object.
docstr: 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.
docstr_tok: ["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","."]
code: def list(self, parts):
      """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.
      """
      _ = self.translate
      if len(parts) == 0:
          return ""
      if len(parts) == 1:
          return parts[0]
      comma = " \u0648 " if self.code.startswith("fa") else ", "
      return _("%(commas)s and %(last)s") % {
          "commas": comma.join(parts[:-1]),
          "last": parts[len(parts) - 1],
      }
  
imports: from __future__ import absolute_import, division, print_function
  import codecs
  import csv
  import datetime
  from io import BytesIO
  import numbers
  import os
  import re
  from tornado import escape
  from tornado.log import gen_log
  from tornado.util import PY3
  from tornado._locale_data import LOCALE_NAMES
label_desc: Use image node_id 8 for calling the Locale obj's underlying member method code with example usage: obj.list(parts) and returns: unknown, str, parts