planetarypy / pvl

Python implementation of PVL (Parameter Value Language)
BSD 3-Clause "New" or "Revised" License
19 stars 19 forks source link

pvl.new not quite working #89

Closed rbeyer closed 3 years ago

rbeyer commented 3 years ago

The intended usage for the pvl.new module was for folks to be able to easily

import pvl.new as pvl

To test out without having to mess with the body of their code. Unless they were doing something specialized, this should "just work."

However, I ran into a few problems:

Your Environment (please complete the following information):

Additional context Working on a PR now.

michaelaye commented 3 years ago

Did I miss a message somewhere? I have no memory on what .new is all about? What is the new part doing?

rbeyer commented 3 years ago

It was a year ago, but the relevant discussion is in #52 followed by #67.

I haven't done much with it since, but the existing PVLModule classes can't be pickled because their implementation doesn't support it, but the new ones based on multidict can, which I needed for some experiments with multiprocessing, which is how I ran into the issues.

But also shows you how little this "feature" is being used. Admittedly, it isn't really documented anywhere, so there's that. I'll try and fix that in my PR, too. Doesn't help if I'm the only one who knows about it.