Implement writing the __cause__ attribute on exceptions#287
Conversation
|
No tests? :) |
|
That's why it reads "WIP" ;) |
|
Tests added, could someone comment on whether the |
|
@filmor you can always stress-test for memory growth of this exception in a for-loop. Looks like it is NOT needed to call XIncref like in this case: pythonnet/src/runtime/pyobject.cs Line 79 in 86937bb Note that PyObject(IntPtr tp) constructor does not incref the ref. count. |
|
@denfromufa @vmuriart @tonyroberts Please review. |
|
I don't think an incref is necessary as the CLRObject constructor creates a new python object (so reference count of 1) and never decrefs it. |
|
Yep, changed that already. |
No description provided.