apache/spark — pull request #2522 by davies (2014-09-24 18:29:57+00:00)
Title: [SPARK-3679] [PySpark] pickle the exact globals of functions

function.func_code.co_names has all the names used in the function, including name of attributes. It will pickle some unnecessary globals if there is a global having the same name with attribute (in co_names).

There is a regression introduced by #2114

cc @JoshRosen