Pickling fails for curried functions with nested qualname paths
Pickling fails for curried functions with nested qualname paths: a task in repo2rlenv-swe-smith (Harbor dataset). When a curried function is defined inside a class (e.g., class Foo contains method f1 ), its qualname is Foo.f1 . Pickling looks up the object by qualname on the module, but the…
The task
When a curried function is defined inside a class (e.g., `class Foo` contains method `f1`), its `__qualname__` is `Foo.f1`. Pickling looks up the object by `__qualname__` on the module, but the module's top-level namespace only has `Foo`, not `Foo.f1` directly. As a result, `pickle.dumps` raises a `PicklingError`:
Part of FineEnvs/repo2rlenv-swe-smith.