vmlaker / mpipe

Python API for writing multiprocessing pipelines
http://vmlaker.github.io/mpipe
MIT License
86 stars 25 forks source link

Non-global wclass is not serializable for pickle #16

Open MacroBull opened 4 years ago

MacroBull commented 4 years ago

On OS without fork support, wclass in OrderedStage.__init__ is required to be serializable, that's a problem.

Otherwise an exception will be raised:

AttributeError: Can't pickle local object 'OrderedStage.init..wclass'