IBMStreams / streamsx.topology

Develop streaming applications for IBM Streams in Python, Java & Scala.
http://ibmstreams.github.io/streamsx.topology
Apache License 2.0
29 stars 43 forks source link

re-activate Python 2.7 logic for dill's recurse parameter #2654

Closed ghost closed 3 years ago

ghost commented 3 years ago

In some circumstances, the serialization of Callables for operators seems to be incomplete, especially when the logic is encapsulated in a member function of the Callable class, which is called in the __call__ function.

NameError: name 'xyz' is not defined

For Python 2.7 there used to be a logic that determined the value of the recurse parameter of dill.dumps(). This PR re-activates this logic.

If there are side effects, and what these side effects are, is not yet known and must be carefully tested.