title: All tuesdays and wednesdays in a date range: is there a more pythonic way?
body: <p>I'd like to find all the tuesdays and wednesdays (as <code>datetime</code> object) between 2015-11-02 and 2015-12-14. This works:</p>
  
  <pre><code>from datetime import datetime, timedelta
  
  l = []
  for i in range(100):
     d = datetime(2015,11,2) + timedelta(days=i)
     if d &gt; datetime(2015,12,14):
         break
     if d.weekday() == 1 or d.weekday() == 2:   # tuesday or wednesday
         l.append(d)
  print l   
  </code></pre>
  
  <blockquote>
    <p>[datetime.datetime(2015, 11, 3, 0, 0), datetime.datetime(2015, 11, 4, 0, 0), datetime.datetime(2015, 11, 10, 0, 0), datetime.datetime(2015, 11, 11, 0, 0), datetime.datetime(2015, 11, 17, 0, 0), datetime.datetime(2015, 11, 18, 0, 0), datetime.datetime(2015, 11, 24, 0, 0), datetime.datetime(2015, 11, 25, 0, 0), datetime.datetime(2015, 12, 1, 0, 0), datetime.datetime(2015, 12, 2, 0, 0), datetime.datetime(2015, 12, 8, 0, 0), datetime.datetime(2015, 12, 9, 0, 0)]</p>
  </blockquote>
  
  <p><strong>Is there a more pythonic way to do it?</strong></p>