An itch that I needed to scratch for a plugin I was writing. I wanted to store a dict in the registry and I didn't see a good way to do that. So I wrote this patch. I'm sharing it, if you want to add it to the code base, go right on ahead.
Well, it has just come to my attention that you're targetting >= 2.4.0. But the ast module is only in >= 2.6.0. So that might wind up being a problem. Sorry about the distraction if so.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ahhh, people are actually reading this. Please excuse, the patch I submitted is completely broken because I didn't understand how the registry classes were set up. I'll update it as soon as I get done.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, it has just come to my attention that you're targetting >= 2.4.0. But the ast module is only in >= 2.6.0. So that might wind up being a problem. Sorry about the distraction if so.
You could also use cPickle.
Ahhh, people are actually reading this. Please excuse, the patch I submitted is completely broken because I didn't understand how the registry classes were set up. I'll update it as soon as I get done.
Nevermind cPickle, I forgot that it has to be human-readable.
Patch against registry.py