On Tue, Jun 25, 2013 at 6:12 PM, Steven D'Aprano <[email protected]>wrote:
> Why do you want to see rubbish like that inside your log file? Surely
> something like this is better?
>
> log.write("data = %r" % data)
>
> which will give you a line like this:
>
> data = {'a': None, 'b': 42}
>
>
> in your log, which is a million times more understandable than a pickle.
>
This conversation is starting to remind me of Arlo Guthrie's Motorcycle
Song...
http://www.youtube.com/watch?v=BvLtNBm1yyA
"I don't want a pickle
I just wanna ride on my motorcycle..."
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor