Armin Rigo avatar Armin Rigo committed 72716ae

Tell the annotator that w_thunkalias is allowed in W_Root when translating
with the thunk object space. (Hack)

Comments (0)

Files changed (1)


 # 'w_obj.w_thunkalias' points to another object that 'w_obj' has turned into
 baseobjspace.W_Root.w_thunkalias = None
+# adding a name in __slots__ after class creation doesn't "work" in Python,
+# but in this case it has the effect of telling the annotator that this
+# attribute is allowed to be moved up to this class.
+baseobjspace.W_Root.__slots__ += ('w_thunkalias',)
 class W_Thunk(baseobjspace.W_Root, object):
     def __init__(w_self, w_callable, args):
         w_self.w_callable = w_callable
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.