Sergey Fedoseev <fedoseev.ser...@gmail.com> added the comment:

Also using this example class:

In [5]: iter(Iterable('one'))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-5-b250104a560e> in <module>()
----> 1 iter(Iterable('one'))

<ipython-input-3-0f0fff743d6c> in __iter__(self)
      3         self.n = n
      4     def __iter__(self):
----> 5         return iter(range(self.n))
      6 

TypeError: range() integer end argument expected, got str.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37976>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to