Ryan Fox added the comment:
If you change the class member 'x' to a different name like 'y', then cv
doesn't include 'x', but does include an unbound 'y'.
In both cases, the function isn't referring to a global variable, just the
class me
New submission from Ryan Fox:
If a variable 'x' exists in the global or local scope, and a function (also
defined in the same scope as 'x', or lower) refers only to a member named 'x'
of an object, inspect.getclosurevars will include a reference to the variable,