Skip to content

Conversation

@dangotbanned
Copy link
Member

@dangotbanned dangotbanned commented Oct 12, 2025

What type of PR is this? (check all applicable)

  • 🐛 Bug Fix

Related issues

Description

Bug discovered by @FBruzzesi see (#3194 (comment))

Now I need to fix 200/222 failures 😂

FIXED: With some metaclass magic

Bug discovered by @FBruzzesi
#3194 (comment)

Now I need to fix 200/222 failures 😂
@dangotbanned dangotbanned marked this pull request as ready for review October 12, 2025 21:57
(https://docs.python.org/3/reference/datamodel.html#object.__slots__)
> If a class defines a slot also defined in a base class, the instance variable defined by the base class slot is inaccessible (except by retrieving its descriptor directly from the base class).
> This renders the meaning of the program undefined.
> In the future, a check may be added to prevent this.
Mostly just moving repeat globals/builtins lookups into locals
@FBruzzesi FBruzzesi mentioned this pull request Oct 13, 2025
9 tasks
Seems I was working around the issue before
@dangotbanned dangotbanned merged commit bf544d4 into oh-nodes Oct 13, 2025
30 of 31 checks passed
@dangotbanned dangotbanned deleted the expr-ir/fix-__slots__-__dict__ branch October 13, 2025 15:59
@dangotbanned dangotbanned mentioned this pull request Oct 13, 2025
73 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants