>>> query = t"SELECT {fields:AND} FROM t"
>>> query = t"SELECT {fields:,} FROM t"
There is no rule that the format specifier has to behave like str.format. It can, and should, be used for additional information like this.
(Alternatively, and perhaps better, provide a callable like all_AND(fields) that can be substituted. It really depends on how frequently this is going to be needed.)
(Process note aside: the PEPs category is for posting PEPs, not discussing them after they’re complete. Use Core Development, Help or Ideas once a PEP has been accepted.)