Python Forum
Oct 31, 2025 · Always look on the forum.io side of Python
Where is the memory leak in this Flask Code? - Python Forum
Jun 18, 2021 · I'm having an issue where every time I run a method in a Flask service, the memory grows. Not sure why. This looks to be the problem method: def save_figure_to_bytes (): buf = …
timeout for io.read ()
Jul 19, 2019 · has anyone put together a way to read an open file with a timeout (returns something different or raises an exception if nothing to read by the end of the specified timeout …
io.UnsupportedOperation: fileno
Jun 15, 2023 · I'm using Python 3.11.4 (64-bit) on windows 11. I've installed libraries from the book, Introduction to Python Programming. One of these is called stdio. From a Python prompt, …
Fatal Python error: init_sys_streams: can't initialize sys standard ...
Aug 22, 2018 · Python 3 installation was working fine until yesterday. Then this happened today. Output from command prompt (Windows 10) when I type Python: Fatal Python error: …
POKE & PEEK... - Python Forum
Nov 3, 2020 · In the basic language use POKE and PEEK. what do in python?
io.UnsupportedOperation: not readable
Nov 6, 2023 · I've already imported csv, so I don't understand why it's complaining about line 20 in the following code: #!/usr/bin/env python3 #MovieListCSV.py #This program does pretty much …
How do I read and write a binary file in Python? - Python Forum
Jun 6, 2023 · I need to read and write a binary file. This file has a variety of floats, short ints, single bytes and strings in it. Most programming languages provide you with a way to read various …
How to "tee" (=split) output to screen and into file? - Python Forum
Jun 24, 2023 · Assume I want to write something from inside a *.py script to screen AND into file D:\tools\python\myoutput.log How can I achive this WITHOUT executing the same command …
Iterating Large Files - Python Forum
Jul 22, 2020 · Hello, I am a beginner and will appreciate any alternatives to handle my problem. Simply put, I have two files, containing one vector each. Aim is to subtract all the elements of …