Skip to content
Closed
Prev Previous commit
Next Next commit
Add missing changes for Python 2
  • Loading branch information
abessen committed Nov 16, 2016
commit 1445a79dac67d2d603bd57e3c7f305b8adfb62c9
2 changes: 1 addition & 1 deletion src/runtime/constructorbinding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static IntPtr mp_subscript(IntPtr op, IntPtr key)
BoundContructor boundCtor = new BoundContructor(self.type, self.pyTypeHndl, self.ctorBinder, ci);

/* Since nothing's chached, do we need the increment???
Runtime.Incref(boundCtor.pyHandle); // Decref'd by the interpreter??? */
Runtime.XIncref(boundCtor.pyHandle); // Decref'd by the interpreter??? */
return boundCtor.pyHandle;
}

Expand Down