On Nov 4, 1:20 pm, Gilles Ganault <[EMAIL PROTECTED]> wrote: > Hello > > 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: > > ===== > url = "http://www.acme.com/list?code=" > p = re.compile("^(\d+)\t(.+)$") > > for i=01 to 99 except 04, 34, 40, 44, 48, 54, 57, 67, 76, 83, 89:
sorted( list( set( domain ) - set( exceptions ) ) ) Set subtraction. -- http://mail.python.org/mailman/listinfo/python-list