Simplify Code

Alexandr N Zamaraev tonal at promsoft.ru
Wed Jul 16 00:51:13 EDT 2008


header_sizes = (36, 26, 22, 18, 14, 12)
if x not in header_sizes:
   raise Exception()
else:
   h36, h26, h22, h18, h14, h12 = tuple(
     line if x == size else '' for x in header_sizes)






More information about the Python-list mailing list