Re: Having fun with python

2007-10-03 Thread Tzury Bar Yochay
> However, one point you have shown very clearly: the second one is much > easier to tear apart and reassemble. Sure. Zen Of Python: Readbility Counts -- http://mail.python.org/mailman/listinfo/python-list

Re: Having fun with python

2007-10-03 Thread Duncan Booth
Tzury <[EMAIL PROTECTED]> wrote: > def loadResMap(self): > self.resMap = [] > [[self.resMap.append(str('A2' + sim[0] + '/r' + str(x))) > for x in range(1, eval(sim[1])+1)] > for sim in [x.split(':') > for x in quickViews.smsResLis

Having fun with python

2007-10-03 Thread Tzury
def loadResMap(self): self.resMap = [] [[self.resMap.append(str('A2' + sim[0] + '/r' + str(x))) for x in range(1, eval(sim[1])+1)] for sim in [x.split(':') for x in quickViews.smsResList.v.split(",")]] ''' # Confuse