From a list directly:

{{ somelist|join(",") }}

From a list of objects:

{% for x in somelist %}{{ x.xyz }}{% if not loop.last %},{% endif %}{% endfor %}