This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ryan Fox
Recipients Ryan Fox, hongweipeng, iritkatriel, yselivanov
Date 2021-12-18.20:30:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
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 member of that name. Besides the function itself, no other globals
are included in cv.globals.

On Sat, Dec 18, 2021 at 10:34 AM hongweipeng <> wrote:

> hongweipeng <> added the comment:
> Why is expected that 'x' would not exist in cv.globals? I think it works
> normally, you can see `x` in `func.__globals__`.
> ----------
> nosy: +hongweipeng
> _______________________________________
> Python tracker <>
> <>
> _______________________________________
Date User Action Args
2021-12-18 20:30:07Ryan Foxsetrecipients: + Ryan Fox, yselivanov, hongweipeng, iritkatriel
2021-12-18 20:30:07Ryan Foxlinkissue26577 messages
2021-12-18 20:30:07Ryan Foxcreate