title: How can I access the objects that are imported without knowing their name?
body: <p>I am trying to make some code more extensible.  As part of the processing I expect to import some regular expressions pattern objects.  I do not want to know before the code executes during production how many there are - I will just use standard names for them.</p>
  
  <pre><code>start_0 = re.compile(r"some start pattern")
  start_1 = re.compile(r"some other start pattern")
  stop_0 = re.compile(r"some stop pattern")
  stop_1 = re.compile(r"some other stop pattern")
   .
   .
   .
  stop_n = re.compile(r"(some nth stop pattern")
  </code></pre>
  
  <p>I want to use all of the regex downstream based on the pattern of their name</p>
  
  <p>So far all I have done is saved a list of regex and then imported them from the IDLE shell. That went fine and if I use the dir fuunction I can see them so I could call them by name but I want to call them using so generator process</p>
  
  <pre><code>for regex in my_regex_list.py:
      do_something with the regex
  </code></pre>
  
  <p>Is it possible to get the names without a lot of clutter?</p>