On Nov 5, 5:20 am, Gilles Ganault <[EMAIL PROTECTED]> wrote:
> I need to call a URL through a loop that starts at 01 and ends at 99,
> but some of the steps must be ignored:

  exclusions = [04, 34, 40, 44, 48, 54, 57, 67, 76, 83, 89]
  for i in (x for x in xrange(1,100) if x not in exclusions):
      ....

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to