jiridanek commented on code in PR #375:
URL: https://github.com/apache/qpid-proton/pull/375#discussion_r923059274


##########
python/proton/_wrapper.py:
##########
@@ -138,6 +142,11 @@ def __repr__(self) -> str:
                                         self.__class__.__name__,
                                         id(self), addressof(self._impl))
 
+# print(f"log _wrapper line 144 {pn_py2void(Wrapper)=} ")
+# PYCTX = int(pn_py2void(Wrapper))
+# print(f"log _wrapper line 144 : type {type(Wrapper)} \n wrapper {Wrapper}")
+handle = ffi.new_handle(Wrapper)
+# PYCTX = int(Wrapper)
 
-PYCTX = int(pn_py2void(Wrapper))
-addressof = int

Review Comment:
   It is better to directly compare with `==`, but if I really address as an 
`int`, then
   
   ```
   int(ffi.cast("intptr_t", p))
   ```
   
   https://groups.google.com/g/python-cffi/c/lwmb1xUqJRQ



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to