---
title: "Discussion on \"How I Use Python Generators to Process Big Files Without Running Out of Memory\" | Hashnode"
description: "Discussion on \"How I Use Python Generators to Process Big Files Without Running Out of Memory\". When I started writing Python scripts for real work, I did what most beginners do: I read the whole file into memory, turned it into a list, and then looped over the list. That works fine for a 200 ro"
url: "https://hashnode.com/posts/how-i-use-python-generators-to-process-big-files-without-running-out-of-memory/6b0051699cca682477e891d5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How I Use Python Generators to Process Big Files Without Running Out of Memory](https://tonycantave.hashnode.dev/how-i-use-python-generators-to-process-big-files-without-running-out-of-memory?utm_source=hashnode&utm_medium=feed)

When I started writing Python scripts for real work, I did what most beginners do: I read the whole file into memory, turned it into a list, and then looped over the list. That works fine for a 200 ro

6d ago · 5 min read · tonycantave.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)

## Written by

[Tony Cantave](https://hashnode.com/@tonycantave)

@tonycantave

  
[View profile](https://hashnode.com/@tonycantave)

Tony Sterlin Cantave is a Connecticut software developer, AI model evaluator and founder of Local Flyer Ads, a screen advertising network for local businesses. CompTIA A+, Network+, Security+, Cloud+ and CySA+. More at tonycantave.com

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
