The most famous and widely used implementation of Python is CPython where the core is implemented in pure C. So, in a gist, _iter_ is something that makes any python object iterable hence to make integers iterable we need to have _iter_ function set for integers. _next_ should return the next item of the iteration and if items are exhausted then raise a StopIteration exception.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |