title: set() not removing duplicates
body: <p>I'm trying to find unique instances of IP addresses in a file using regex. I find them fine and try to append them to a list and later try to use <code>set()</code> on my list to remove duplicates. I'm finding each item okay and there are duplicates but I can't get the list to simplify. The output of printing my set is the same as printing ips as a list, nothing is removed.</p>
  
  <pre><code>ips = [] # make a list
  count = 0
  count1 = 0
  for line in f: #loop through file line by line
      match = re.search("\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}", line) #find IPs
      if match: #if there's a match append and keep track of the total number of Ips
          ips.append(match) #append to list
          count = count + 1
  ipset = set(ips)
  print(ipset, count)
  </code></pre>
  
  <p>This string <code>&lt;_sre.SRE_Match object; span=(0, 13), match='137.43.92.119'&gt;</code> shows up 60+ times in the output before and after trying to <code>set()</code> the list</p>