<div dir="ltr"><div><div><div>Problem: Under section 10.11 Quality Control function 'average' returns integer division causing doctest and unittest to fail.<br></div>Resolution: average function should return "float division".<br>
<br></div>Regards,<br></div>Vishal <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 9, 2013 at 11:53 PM, vishal yadav <span dir="ltr"><<a href="mailto:vishalcdac07@gmail.com" target="_blank">vishalcdac07@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear <a href="http://python.org" target="_blank">python.org</a> documentation team,<br><br>The method that should be defined under Iterator Class should be __next__() or next(). <br>
<br>Problem: In case __next__() method is defined python under user defined Iterator class, interpreter gives following error:<br>
<i>TypeError: instance has no next() method</i><br><br>Resolution: The problem is resolved when __next__() is renamed to next().<br><br></div><div>PS: My version of python Python 2.7.3<br><br></div><div>Regards,<br></div>
<div>Vishal<br></div></div>
</blockquote></div><br></div>