In article <[email protected]>,
Andrew Berg <[email protected]> wrote:
> How should I go about switching from concatenation to string formatting
> for this?
>
> avs.write(demux_filter + field_filter + fpsin_filter + i2pfilter +
> dn_filter + fpsout_filter + trim_filter + info_filter)
>
> I can think of a few ways, but none of them are pretty.
The canonical way to do that would be something like
fields = [demux_filter,
field_filter,
fpsin_filter,
i2pfilter,
dn_filter,
fpsout_filter,
trim_filter,
info_filter]
avs.write(''.join(fields))
--
http://mail.python.org/mailman/listinfo/python-list