Ask coding questions

← Back to all posts
How to stop repl restart for every one hour for my infinite loop python code?
h
chethansai

I have an infinite loop python code. But thre repl restarts and all my variables get reset.

I have a hacker subscription but it says permanently alve to be coming soon

Voters
chethansai
Comments
hotnewtop
DynamicSquid

If you want your variables to be saved after you close the repl, you have to store them in a text file

AzureDev

I'm encountering the same problem, but even the TEXT FILES sometimes gets out of sync or wipes.

Coder100

You could use a database, repl.it has an official one,
Docs https://pypi.org/project/replit/