Python newbie with a problem writing files
Tim Chase
python.list at tim.thechases.com
Sun Sep 3 23:11:10 EDT 2006
>> feed_list = open("feed_listing.conf","r")
>
> What could it be about the above line that means "Open this file for
> READ ONLY"?
Oooh, oooh, I know! If you rot13 the file-name, it comes back as
"srrq_yvfgvat.pbas". The double "r"s in the file-name instruct
python to open the file as "really read-only". And the .pbas
means you need to be opening the file with python-basic, not python.
:)
-tkc
More information about the Python-list
mailing list