Tag

Generators

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
Python Programming Learning Circle
Python Programming Learning Circle
Apr 9, 2025 · Fundamentals

10 Practical Python Code Simplification Techniques

This article presents ten concise Python techniques—including list comprehensions, zip, lambda functions, generators, f‑strings, collections, decorators, enumerate, the walrus operator, and itertools—to dramatically reduce code length, improve readability, and boost development efficiency.

GeneratorsPythonbest practices
0 likes · 6 min read
10 Practical Python Code Simplification Techniques
Sohu Tech Products
Sohu Tech Products
Mar 5, 2025 · Frontend Development

Why Modern JavaScript Developers Move Away from Traditional Loops and What to Use Instead

Modern JavaScript developers increasingly replace traditional for‑loops with expressive array methods, generators, and functional patterns because loops risk scope leakage, mutable state, and off‑by‑one errors, while still using classic loops only for performance‑critical or low‑level tasks, choosing the style that fits data size, team preferences, and project requirements.

Array MethodsFunctional ProgrammingGenerators
0 likes · 8 min read
Why Modern JavaScript Developers Move Away from Traditional Loops and What to Use Instead
IT Services Circle
IT Services Circle
Mar 1, 2025 · Frontend Development

Why Modern JavaScript Developers Avoid Traditional Loops and What to Use Instead

The article explains why traditional JavaScript for‑loops are increasingly avoided, outlines modern alternatives such as array methods, generators, transducers and observables, presents performance benchmark findings, and offers guidance on when each iteration technique is appropriate for developers.

Array MethodsFunctional ProgrammingGenerators
0 likes · 7 min read
Why Modern JavaScript Developers Avoid Traditional Loops and What to Use Instead
Code Mala Tang
Code Mala Tang
Feb 5, 2025 · Fundamentals

Avoid These 4 Common Python Generator Mistakes and Use Them Effectively

Learn what Python generators are, see a simple countdown example, and discover four typical pitfalls—unnecessary use, exhaustion, misuse in list comprehensions, and improper yield placement—along with practical fixes to help you apply generators correctly in real-world code.

GeneratorsIteratorsPython
0 likes · 6 min read
Avoid These 4 Common Python Generator Mistakes and Use Them Effectively
Test Development Learning Exchange
Test Development Learning Exchange
Jan 23, 2025 · Fundamentals

Advanced Python Features: Generators, Context Managers, Metaclasses, and More

This article introduces twelve advanced Python features—including generators, context managers, metaclasses, descriptors, coroutines, data classes, type annotations, multiple inheritance with mixins, exception chaining, modules and packages, itertools, and regular expressions—explaining their purpose and providing clear code examples to illustrate each concept.

Advanced FeaturesContext ManagersData Classes
0 likes · 8 min read
Advanced Python Features: Generators, Context Managers, Metaclasses, and More
Test Development Learning Exchange
Test Development Learning Exchange
Jan 10, 2025 · Fundamentals

Advanced Python Features and Their Use Cases

This article introduces twenty advanced Python concepts—including decorators, context managers, generators, metaclasses, multiple inheritance, coroutines, closures, magic methods, dynamic attributes, GIL, async IO, regular expressions, garbage collection, modules, virtual environments, SOLID principles, type annotations, IPC, memory management, and reflection—explaining their typical use cases and providing clear code examples for each.

Advanced FeaturesGeneratorsPython
0 likes · 11 min read
Advanced Python Features and Their Use Cases
Test Development Learning Exchange
Test Development Learning Exchange
Dec 10, 2024 · Fundamentals

Python itertools Module: Functions, Usage Examples, and Practical Limitations

This article introduces the Python itertools module, demonstrates common functions such as count, cycle, repeat, combinations, permutations, chain, filterfalse, dropwhile, accumulate, and groupby with code examples, and discusses important limitations like infinite loops, memory consumption, and iterator irreversibility.

GeneratorsIteratorsitertools
0 likes · 8 min read
Python itertools Module: Functions, Usage Examples, and Practical Limitations
Python Programming Learning Circle
Python Programming Learning Circle
Nov 23, 2024 · Fundamentals

Advanced Python Concepts: Exception Handling, Collections, itertools, Lambdas, Decorators, Generators, Threads, Dunder Methods, Logging, and Context Managers

This article introduces ten advanced Python topics—including exception handling, the collections and itertools modules, lambda functions, decorators, generators, threading, dunder methods, logging, and context managers—providing explanations, code examples, and practical tips to help developers deepen their programming skills and prepare for interviews.

AdvancedCollectionsGenerators
0 likes · 13 min read
Advanced Python Concepts: Exception Handling, Collections, itertools, Lambdas, Decorators, Generators, Threads, Dunder Methods, Logging, and Context Managers
php中文网 Courses
php中文网 Courses
Nov 19, 2024 · Backend Development

18 Powerful PHP Features to Boost Development Efficiency and Code Quality

This article introduces eighteen advanced PHP features—including magic methods, generators, anonymous classes, attributes, fibers, null‑safe method chaining, dynamic property access, closures, traits, named arguments, first‑class callables, enums, type casting, reference returns, late static binding, opcode caching, preloading, and reflection—demonstrating how each can improve code quality, performance, and maintainability.

Advanced FeaturesGeneratorsOOP
0 likes · 8 min read
18 Powerful PHP Features to Boost Development Efficiency and Code Quality
Test Development Learning Exchange
Test Development Learning Exchange
Oct 15, 2024 · Fundamentals

Python Fundamentals: Decorators, List Comprehensions, Generators, Exception Handling, Modules, Threading, Copying, Garbage Collection, *args/**kwargs, Closures, Methods, Process vs Thread, Database Differences, Data Structures, and API Testing

This article provides a comprehensive overview of essential Python concepts—including decorators, list comprehensions, generators, exception handling, modules, threading, shallow and deep copying, garbage collection, variable arguments, closures, method types, process‑thread differences, relational vs NoSQL databases, array vs linked‑list structures, and the distinction between HTTP and Web Service API testing—illustrated with clear explanations and runnable code examples.

Data StructuresGeneratorsdecorators
0 likes · 10 min read
Python Fundamentals: Decorators, List Comprehensions, Generators, Exception Handling, Modules, Threading, Copying, Garbage Collection, *args/**kwargs, Closures, Methods, Process vs Thread, Database Differences, Data Structures, and API Testing
Test Development Learning Exchange
Test Development Learning Exchange
Oct 6, 2024 · Fundamentals

Understanding Python Iterables and Iterators and Their Use in Automated Testing

This article explains the difference between iterables and iterators in Python, demonstrates how to implement them with custom classes, shows basic usage with built‑in collections, and provides multiple automation‑testing examples using generators and iterator patterns to handle dynamic test data and pagination.

Automation TestingGeneratorsIterables
0 likes · 11 min read
Understanding Python Iterables and Iterators and Their Use in Automated Testing
Test Development Learning Exchange
Test Development Learning Exchange
Sep 20, 2024 · Fundamentals

Python yield from: Simplifying Nested Generator Calls and Data Flow

This article explains Python's yield from feature, which simplifies nested generator calls and data flow by delegating sub-generator iteration results to the current generator.

Data FlowException HandlingGenerators
0 likes · 5 min read
Python yield from: Simplifying Nested Generator Calls and Data Flow
Test Development Learning Exchange
Test Development Learning Exchange
Sep 18, 2024 · Fundamentals

Understanding Python Generators: Functions, Expressions, and Internal Implementation

This article explains Python generators, covering generator functions and expressions, their usage with yield, the send method, and the underlying CPython state‑machine implementation, illustrated with clear code examples; it also discusses how generators manage execution flow and improve memory efficiency.

GeneratorsIteratoryield
0 likes · 6 min read
Understanding Python Generators: Functions, Expressions, and Internal Implementation
php中文网 Courses
php中文网 Courses
Aug 29, 2024 · Backend Development

10 Advanced PHP Techniques to Boost Performance and Efficiency

This article introduces ten lesser‑known PHP tricks—including memory management, Composer dependency handling, the built‑in web server, anonymous classes, try‑catch error handling, generators, traits, built‑in functions, PDO, and namespaces—to help developers write more efficient, maintainable, and secure code.

ComposerGeneratorsMemory Management
0 likes · 9 min read
10 Advanced PHP Techniques to Boost Performance and Efficiency
php中文网 Courses
php中文网 Courses
Jun 14, 2024 · Backend Development

Understanding PHP Generators: Efficient Data Iteration and Memory Optimization

This article explains the concept, operation, and advantages of PHP generators, demonstrating how they provide memory‑efficient, lazy‑evaluated iteration for large data sets and streams, and includes practical code examples and best‑practice tips for backend developers.

GeneratorsIteratorsMemory Management
0 likes · 9 min read
Understanding PHP Generators: Efficient Data Iteration and Memory Optimization
Python Programming Learning Circle
Python Programming Learning Circle
May 8, 2024 · Fundamentals

Lesser‑Known Python Tricks and Techniques

This article introduces several lesser‑known Python tricks—including the ternary operator, enumerate, zip, list comprehensions, lambda functions, any/all, itertools, generators, decorators, and the use of * and ** for multiple arguments—each explained with concise examples to help developers write cleaner, more efficient code.

FunctionsGeneratorsPython
0 likes · 7 min read
Lesser‑Known Python Tricks and Techniques
Test Development Learning Exchange
Test Development Learning Exchange
May 1, 2024 · Fundamentals

Using Python Generators for Dynamic Test Data Generation

This article explains how Python generators can be leveraged in interface automation testing to dynamically create test data, parameterize URLs, generate test cases, build report entries, tokens, HTTP status codes, query dates, API paths, report headings, and email templates, with complete code examples for each scenario.

Data GenerationGeneratorsPython
0 likes · 10 min read
Using Python Generators for Dynamic Test Data Generation
Python Programming Learning Circle
Python Programming Learning Circle
Apr 22, 2024 · Fundamentals

Advanced Python Concepts: Exception Handling, Collections, itertools, Decorators, Generators, and More

This tutorial covers a range of advanced Python topics—including exception handling, the collections module, itertools utilities, lambda functions, decorators, generators, threading, dunder methods, logging, and context managers—to help developers deepen their programming expertise and apply these techniques in real projects.

AdvancedCollectionsGenerators
0 likes · 13 min read
Advanced Python Concepts: Exception Handling, Collections, itertools, Decorators, Generators, and More
Python Programming Learning Circle
Python Programming Learning Circle
Apr 9, 2024 · Fundamentals

How to Avoid Writing For Loops in Python: List Comprehensions, Functions, Generators, and itertools

This article explains why you should avoid writing explicit for loops in Python and demonstrates how to replace them with list comprehensions, map/reduce functions, extracted helper functions, generator expressions, and itertools utilities to produce shorter, more readable, and less indented code.

Functional ProgrammingGeneratorsPython
0 likes · 6 min read
How to Avoid Writing For Loops in Python: List Comprehensions, Functions, Generators, and itertools