enthought/pyql — pull request #17 by ducky427 (2012-12-21 19:45:48+00:00)
Title: Fixed Rate bond example is incorrect.

When I run the example, I get this error:

Traceback (most recent call last):
File "bonds.py", line 72, in
bond.set_pricing_engine(discounting_term_structure)
TypeError: Argument 'engine' has incorrect type (expected quantlib.pricingengines.engine.PricingEngine, got quantlib.termstructures.yields.yield_term_structure.YieldTermStructure)

I've changed it so that it runs correctly.