Tagged articles
4 articles
Page 1 of 1
Test Development Learning Exchange
Test Development Learning Exchange
Dec 29, 2024 · Fundamentals

Understanding Python's del Statement and Garbage Collection

This article explains how Python's del statement removes variable references, how the interpreter's garbage collection mechanisms reclaim memory—including reference counting and cyclic‑reference detection—and provides multiple code examples demonstrating proper resource cleanup in automated testing scenarios.

Garbage CollectionMemory Managementcode-examples
0 likes · 7 min read
Understanding Python's del Statement and Garbage Collection
MaGe Linux Operations
MaGe Linux Operations
Jan 19, 2022 · Fundamentals

Master Python List Deletion: remove, pop, and del Explained

Learn how to delete elements from Python lists using three primary methods—remove for value-based removal, pop for index-based removal that returns the element, and del for deleting by index, range, or entire objects—complete with clear code examples and key usage notes.

ListPythonTutorial
0 likes · 4 min read
Master Python List Deletion: remove, pop, and del Explained