Python : writing to a file

Steven D'Aprano steve+comp.lang.python at
Sat Jan 10 18:06:56 CET 2015

Ganesh Pal wrote:

> Throttling-1# cat test_2.txt

Are you running these scripts as root? That could be a bad idea. If you have
a bug in your code, as often happens when coding, who knows what it might
do. E.g. if you put in the wrong pathname, you could overwrite important
files. You should always do your coding as a regular user, not root.


More information about the Python-list mailing list