[docs] [Python Documentation Bug] __next__() method or next() method for Iterator class
vishalcdac07 at gmail.com
Thu Sep 12 20:23:45 CEST 2013
Sorry! My mistake... I have been referring to wrong version of
documentation (3.2) while working with 2.7.
On Wed, Sep 11, 2013 at 6:26 PM, vishal yadav <vishalcdac07 at gmail.com>wrote:
> Problem: Under section 10.11 Quality Control function 'average' returns
> integer division causing doctest and unittest to fail.
> Resolution: average function should return "float division".
> On Mon, Sep 9, 2013 at 11:53 PM, vishal yadav <vishalcdac07 at gmail.com>wrote:
>> Dear python.org documentation team,
>> The method that should be defined under Iterator Class should be
>> __next__() or next().
>> Problem: In case __next__() method is defined python under user defined
>> Iterator class, interpreter gives following error:
>> *TypeError: instance has no next() method*
>> Resolution: The problem is resolved when __next__() is renamed to next().
>> PS: My version of python Python 2.7.3
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the docs