Dark Light

I need to save a list into a tab-deliminated text-file. (Mark’s RSSParser sends me the last-modified of the feed as a list which I need to save to the config file so I can recall it when I next run and feed it to the site to make sure I’m not grabbing a duplicate).

The logical way to do this is to serialize the list and save it. For this, I find Pickle which does exactly that. The problem is that the format it saves out to contains line breaks, unideal in a tab-deliminated file.

The question is how do I save (or indeed print anywhere) a string as a raw string? The tutorial says that to output a raw string I prefix it with r, which causes logical problems when I’m trying to output from a variable.

Extra bonus points if you can tell me where I should have found this information.

Related Posts

Infested

[11:36] {gilmae} how are we all today? [11:37] {Aq-Work} Not too bad [11:38] {Aq-Work} Currently I’m clearing the…

Reflections

Do you know what never get old? Reflections. I accidentally bought a new camera today, and one of…

Trace Mammoth

Yesterday I failed my driving test. I’ve written an article about that, but it was deleted, so I’ll…