Re: [SQLObject] order by sum and group by
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ma...> - 2006-08-06 10:57:45
|
A few comments about style... On Sat, Aug 05, 2006 at 07:39:11PM -0400, Sean McBride wrote: > + extraColsList = ops.get('extraColumns',[]) Don't hesitate to add an additional space. We do not worry too much about the size of the source. ;) BTW, wouldn't it better to use () instead of creating a new list every time? + extraColsList = ops.get('extraColumns', ()) > + gb = ops['groupBy'] gb? KGB? Don't be shy to write a longer names. ;) + groupBy = ops['groupBy'] + extraColumns = self.select.ops.get('extraColumns', ()) Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |