This is an automated email from the ASF dual-hosted git repository. astitcher pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/main by this push: new b4ba95a50 PROTON-2684: Python wrapper objects can't print __repr__ b4ba95a50 is described below commit b4ba95a50beba84014862a11b1e764a439a5ba02 Author: Andrew Stitcher <astitc...@apache.org> AuthorDate: Thu Feb 16 17:33:32 2023 +0000 PROTON-2684: Python wrapper objects can't print __repr__ This pretty much screws up any stack traces including these objects! --- python/cproton.py | 2 +- python/proton/_wrapper.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/cproton.py b/python/cproton.py index ba973d0e0..4d5e1558a 100644 --- a/python/cproton.py +++ b/python/cproton.py @@ -163,7 +163,7 @@ def isnull(obj): def addressof(obj): - return ffi.cast('uint64_t', obj) + return int(ffi.cast('uint64_t', obj)) def void2py(void): diff --git a/python/proton/_wrapper.py b/python/proton/_wrapper.py index 9149e7562..88ab25990 100644 --- a/python/proton/_wrapper.py +++ b/python/proton/_wrapper.py @@ -59,7 +59,7 @@ class Wrapper(object): self, impl: Any = None, get_context: Optional[Callable[[Any], Any]] = None, - constructor: Callable[[], Any] = None + constructor: Optional[Callable[[], Any]] = None ) -> None: init = False if impl is None and constructor is not None: --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org