Closed
Description
Apparently, bugs can be caused by providing the parent
argument to ClassDef.__init__()
, because the name of that node (the ancestor) will be added to the locals of the child node, and this may not be intended (it wasn't intended in the case of subclassing a namedtuple
. We need to audit whether it is happening anywhere else and if that behavior is correct.
See discussion at #1489 (comment).