Python Forum

Full Version: recording a translation table into a file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I'm writing a script to collate ancient greek. Until now, I've been able to create a dictionnary from the Unicode blocks of characters and use it to get a translation table with the maketrans method. I'm wondering whether it is possible to record (with pickle) this table into a file or if I have to record the dictionnary.

Note: Don't bother to reply to this post. I've just seen that the translation table's type is dict. Anyway, I'll record the dictionnary and not the translation table, to be able to modify some entries if necessary.

Arbiel