Tag

Iterable

1 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
May 22, 2025 · Fundamentals

Understanding Python Iterables: Concepts, Creation, Built‑in Functions, Comprehensions, Advanced Operations, and Generators

This article explains Python iterables, covering their basic concepts, how to create and use them with loops, iter() and next(), built‑in functions that accept iterables, comprehension techniques, advanced operations like zip, enumerate, filter, map, and their relationship with generators for efficient data processing.

GeneratorsIterablePython
0 likes · 7 min read
Understanding Python Iterables: Concepts, Creation, Built‑in Functions, Comprehensions, Advanced Operations, and Generators
Code Mala Tang
Code Mala Tang
Apr 15, 2025 · Fundamentals

What Really Happens Inside a Python for-loop? Uncover the Magic of Iterators

This article demystifies Python’s for-loop by explaining how iterable objects and iterators work under the hood, illustrating the iterator protocol with code examples, and providing practical custom iterator implementations, common pitfalls, and tips for efficient data processing.

Data ProcessingGeneratorIterable
0 likes · 9 min read
What Really Happens Inside a Python for-loop? Uncover the Magic of Iterators
Test Development Learning Exchange
Test Development Learning Exchange
Oct 8, 2024 · Fundamentals

Understanding Python's Iteration Protocol: Iterable and Iterator with Practical Examples

This article explains Python's iteration protocol, detailing how iterable objects and iterators work, and provides multiple code examples—including custom iterables, generators, and iterator-based test data handling—to demonstrate their use in building flexible and memory‑efficient applications.

GeneratorIterableIterator
0 likes · 11 min read
Understanding Python's Iteration Protocol: Iterable and Iterator with Practical Examples
Python Programming Learning Circle
Python Programming Learning Circle
Mar 28, 2021 · Fundamentals

Understanding Python's for Loop: Syntax, Else Clause, Iterables, Iterators, and Bytecode Disassembly

This article explains Python's for loop in depth, covering basic syntax, the optional else clause, the concepts of iterables and iterators, how to implement custom iterators and iterable objects, the loop's execution flow, an equivalent while‑loop implementation, and a step‑by‑step disassembly of the generated bytecode.

IterableIteratorsbytecode
0 likes · 12 min read
Understanding Python's for Loop: Syntax, Else Clause, Iterables, Iterators, and Bytecode Disassembly
Test Development Learning Exchange
Test Development Learning Exchange
Aug 1, 2018 · Fundamentals

Understanding Python's sorted() Function and Its Differences from list.sort()

This article explains how Python's built‑in sorted() function sorts any iterable and returns a new list, contrasts it with the in‑place list.sort() method, and demonstrates usage of key functions, reverse ordering, and multi‑dimensional sorting with code examples.

Iterablekey functionlist.sort
0 likes · 5 min read
Understanding Python's sorted() Function and Its Differences from list.sort()