Tag

stringio

1 views collected around this technical thread.

Python Programming Learning Circle
Python Programming Learning Circle
Aug 1, 2024 · Fundamentals

Comprehensive Guide to Python File Operations, CSV, JSON, and Pickle

This article provides a thorough overview of Python file handling, covering opening and closing files, absolute and relative paths, various file modes, reading and writing techniques, pointer manipulation, file copying, CSV I/O, in‑memory streams with StringIO/BytesIO, and serialization/deserialization using JSON and pickle modules.

CSVFile I/OPickle
0 likes · 17 min read
Comprehensive Guide to Python File Operations, CSV, JSON, and Pickle
Python Programming Learning Circle
Python Programming Learning Circle
Dec 7, 2021 · Fundamentals

Handling Subprocess Pipe Buffer Limits and Avoiding Deadlocks in Python

This article explains why Python's subprocess.Popen can deadlock when the child process writes more data than the system pipe buffer (typically 4 MiB), and demonstrates practical solutions such as avoiding PIPE, using communicate(), and streaming output with StringIO to prevent the blockage.

communicatedeadlockpipe
0 likes · 6 min read
Handling Subprocess Pipe Buffer Limits and Avoiding Deadlocks in Python
Python Programming Learning Circle
Python Programming Learning Circle
Apr 23, 2021 · Fundamentals

Comprehensive Guide to Python File Operations, Paths, CSV, In-Memory Streams, and Serialization

This article provides a thorough overview of Python file handling, covering opening and closing files, reading and writing modes, absolute and relative paths, file copying, CSV read/write, in‑memory streams with StringIO/BytesIO, sys I/O redirection, and data serialization using JSON and pickle.

CSVPickleSerialization
0 likes · 18 min read
Comprehensive Guide to Python File Operations, Paths, CSV, In-Memory Streams, and Serialization