On Wednesday 30 November 2016 03:10:23 Michael Manfre wrote: > > On 29 November 2016 at 22:04, Josh Smeaton <josh.smea...@gmail.com> > > wrote: > > > Mads, there's nothing that currently handles a list of expressions, and > > certainly nothing specific to OrderBy. Your proposed syntax is basically > > what would be required `order_by=[ .. ]`. > > We (or anyone) could make an ExpressionList class that is essentially an > Expression that is a list of expressions. It would basically be a > Combinable with comma as the connector. > I don't believe you can override comma, and I'm also not sure an ExpressionList is of general utility -- so far, all the places where we needed such lists were method calls (like order_by()). I'd try harder to look for APIs which keep it that way -- just off the top of my head,
Window(expression, *order_by) (this probably doesn't work, Window() is more complex than that, but the order_by=[...] suggested by Mads probably does)