(lst)
return '{' + ','.join(items) + '}'
r"""Formats Python list as Postgres array.
    Reverse of parse_pgarray().

    >>> make_pgarray([])
    '{}'
    >>> make_pgarray(['foo_3',1,'',None])
    '{foo_3,1,"",NULL}'
    >>> make_pgarray([None,',','\\',"'",'"',"{","}",'_'])
    '{NULL,",","\\\\","\'","\\"","{","}",_}'
r"""Formats Python list as Postgres array.
    Reverse of parse_pgarray().
r Formats Python list as Postgres array . Reverse of parse_pgarray () .
def make_pgarray(lst):
    r"""Formats Python list as Postgres array.
    Reverse of parse_pgarray().

    >>> make_pgarray([])
    '{}'
    >>> make_pgarray(['foo_3',1,'',None])
    '{foo_3,1,"",NULL}'
    >>> make_pgarray([None,',','\\',"'",'"',"{","}",'_'])
    '{NULL,",","\\\\","\'","\\"","{","}",_}'
    """

    global _pgarray_bad_rc
    if _pgarray_bad_rc is None:
        _pgarray_bad_rc = re.compile(_pgarray_bad_rx)

    items = [_quote_pgarray_elem(v) for v in lst]
    return '{' + ','.join(items) + '}'
def make_pgarray ( lst ) : global _pgarray_bad_rc if _pgarray_bad_rc is None : _pgarray_bad_rc = re . compile ( _pgarray_bad_rx ) items = [ _quote_pgarray_elem ( v ) for v in lst ] return '{' + ',' . join ( items ) + '}'