title: How do I get coupon payment dates for a simple fixed bond using quantlib, quantlib-swig and python
body: <p>I am trying yo learn quantlib (1.3) &amp; python bindings using quantlib-swig (1.2) in ubuntu 13.04. As a starter I am trying to determine the payment dates for a very simple bond as given below using 30/360 European day counter  </p>
  
  <pre><code>from QuantLib import *
  
  faceValue = 100.0
  doi = Date(31, August, 2000)
  dom = Date(31, August, 2008)
  coupons = [0.05]
  
  dayCounter = Thirty360(Thirty360.European)
  
  schedule = Schedule(doi, dom, Period(Semiannual),
      India(),
      Unadjusted, Unadjusted,
      DateGeneration.Backward, False)
  </code></pre>
  
  <p>Following are my questions:  </p>
  
  <p>Which method of schedule object will give me the payment dates?<br>
   Where do I need to specify the dayCounter object so that the dates are appropriately calculated?  </p>
  
  <p>Using Dimitri Reiswich' Presentation, I tried mimicking C++ code, but schedule.dates() returns an error as no such method.  </p>
  
  <p>The payment dates for this Fixed Rate bond are, (obtained by using oocalc)  </p>
  
  <p>Feb 28, 2001; Aug 31, 2001<br>
  Feb 28, 2002; Aug 31, 2002<br>
  Feb 28, 2003; Aug 31, 2003<br>
  Feb 29, 2004; Aug 31, 2004<br>
  Feb 28, 2005; Aug 31, 2005<br>
  Feb 28, 2006; Aug 31, 2006<br>
  Feb 28, 2007; Aug 31, 2007<br>
  Feb 29, 2008; Aug 31, 2008  </p>
  
  <p>How do I get the payment dates for this simple bond using python &amp; quantlib? Can someone please help?</p>
  
  <p>regards</p>
  
  <p>K</p>