On 29 Aug 2007, at 14:40, Ken Bloom wrote: > On Wed, 29 Aug 2007 08:53:19 +0900, Logan Capaldo wrote: > >> On 8/28/07, Douglas F Shearer <dougal.s / gmail.com> wrote: >>> Hi Jay >>> >>> On 29 Aug 2007, at 00:30, Jay Levitt wrote: >>> >>>> a = b if b >>>> >>>> Does that exist in a DRYer form? >>> >>> Best I could come up with just now was: >>> >>> a = b || a >> a = b if b >> Not really DRYer :), you just repeat a instead of b :) > > But a is defintiely a variable, while b may be a function call. > In a = b if b, you compute the function twice. > In a = b or a, you compute the function only once. Took the words right out of my mouth, I must read my email more frequently... Douglas F Shearer dougal.s / gmail.com http://douglasfshearer.com