Menu

#418 String based registry storage of python basic types

open
nobody
5
2012-09-06
2012-07-01
No

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.

Discussion

  • Michael Reilly

    Michael Reilly - 2012-07-01

    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.

     
  • Valentin Lorentz

    You could also use cPickle.

     
  • Michael Reilly

    Michael Reilly - 2012-07-01

    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.

     
  • Valentin Lorentz

    Nevermind cPickle, I forgot that it has to be human-readable.

     
  • Michael Reilly

    Michael Reilly - 2012-07-01

    Patch against registry.py

     

Log in to post a comment.

MongoDB Logo MongoDB