Simplify Code

Victor Subervi victorsubervi at gmail.com
Tue Jul 29 09:04:46 EDT 2008


Thanks. That worked.
Victor


On 7/16/08, Alexandr N Zamaraev <tonal at promsoft.ru> wrote:
>
> 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)
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080729/74045350/attachment-0001.html>


More information about the Python-list mailing list