Introduce a property to get the pointer to the underlying bitmap#144
Introduce a property to get the pointer to the underlying bitmap#144Ezibenroc merged 1 commit intoEzibenroc:masterfrom
Conversation
|
Hello,
|
|
Yes, of course. |
|
Thanks ! One more change please. I would like to make it clear from both the field name and the docstrings (for both 32 and 64 bits) that this is risky territory. The name Thinking again about the tests, |
|
Sure. I changed the docstrings and the property name. I got rid of the But thinking about it a bit more, we do of course link the CRoaring library into the extension, so we can just interface with that using ctypes. So I added a straightforward test that just checks a change in cardinality using an FFI call. |
Yes, good idea ! It fails on windows. From what I can read, it's because symbols are nor exported by default on windows. We could technically fix it, but it feels overkill for a simple test. @pytest.mark.skipif(sys.platform == "win32", "Symbols not exported on windows")
def test_ffi_cardinality(self) -> None:Apart from that, we should be good to merge. |
2949ff3 to
0740a11
Compare
This is useful for FFI.
|
I've added the skip condition. |
|
Thanks a lot, merging ! |
|
Thank you too. |
This is useful for FFI.
I want to access the underlying C structure in another native extension through CFFI.
If this could be integrated, I would be grateful.