We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03f937c commit a2f9436Copy full SHA for a2f9436
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/statement/AbstractImportNode.java
@@ -334,7 +334,8 @@ static abstract class PyModuleIsInitializing extends Node {
334
@Specialization
335
static boolean isInitializing(VirtualFrame frame, Object mod,
336
@Cached PyObjectGetAttr getSpecNode,
337
- @Cached PyObjectGetAttr getInitNode,
+ @Cached PyObjectLookupAttr getInitNode,
338
+ // CPython uses PyObject_GetAttr, but ignores the exception here
339
@Cached PyObjectIsTrueNode isTrue) {
340
try {
341
Object spec = getSpecNode.execute(frame, mod, SpecialAttributeNames.__SPEC__);
0 commit comments