Tagged articles
4 articles
Page 1 of 1
Go Programming World
Go Programming World
Jul 17, 2025 · Fundamentals

Mastering Go 1.23 Iterators: From Basics to Advanced Usage

This article explores the newly introduced iterator feature in Go 1.23, explaining what iterators are, why they were added, how to implement them manually, how to use the new iter package, and how the slices and maps packages provide iterator‑friendly utilities for Go developers.

GenericsGoIterators
0 likes · 34 min read
Mastering Go 1.23 Iterators: From Basics to Advanced Usage
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Sep 18, 2024 · Fundamentals

How Python Implements Iterators: From __iter__ to __next__

This article explains Python's iterator protocol by showing how objects become iterable through __iter__, how the built‑in iter function creates iterator objects, the CPython internals of PyObject_GetIter, and how the __next__ method advances elements, with concrete code examples and source‑level snippets.

CPythonIterableIterator
0 likes · 16 min read
How Python Implements Iterators: From __iter__ to __next__