Re: write Python dict (mb with unicode) to a file

2008-06-14 Thread John Machin
On Jun 14, 7:13 pm, dmitrey <[EMAIL PROTECTED]> wrote: > hi all, > what's the best way to write Python dictionary to a file? > > (and then read) > > There could be unicode field names and values encountered. I'm presuming that "field names" means "dictionary keys". If not unicode, are the remainde

Re: write Python dict (mb with unicode) to a file

2008-06-14 Thread TheSaint
On 17:13, sabato 14 giugno 2008 dmitrey wrote: > hi all, > what's the best way to write Python dictionary to a file? > Pickle or ConfigParser. You may gather more details at http://docs.python.org/lib/persistence.html -- Mailsweeper Home : http://it.geocities.com/call_me_not_now/index.html -- h

Re: write Python dict (mb with unicode) to a file

2008-06-14 Thread Matt Nordhoff
dmitrey wrote: > hi all, > what's the best way to write Python dictionary to a file? > > (and then read) > > There could be unicode field names and values encountered. > Thank you in advance, D. pickle/cPickle, perhaps, if you're willing to trust the file (since it's basically eval()ed)? Or JSON

write Python dict (mb with unicode) to a file

2008-06-14 Thread dmitrey
hi all, what's the best way to write Python dictionary to a file? (and then read) There could be unicode field names and values encountered. Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list