https://github.com/Nerixyz created https://github.com/llvm/llvm-project/pull/214296
`__nonzero__`, `__div__`, `__hex__`, and `__oct__` are from Python 2 and not used in Python 3, so remove them. --- <sub>Stack created with <a href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub> >From f2417964385ec5406e733cd430a0055c17d92421 Mon Sep 17 00:00:00 2001 From: Nerixyz <[email protected]> Date: Wed, 5 Aug 2026 19:33:14 +0200 Subject: [PATCH] [lldb] Remove Python 2 operators from lldb.value --- lldb/bindings/python/python-extensions.swig | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lldb/bindings/python/python-extensions.swig b/lldb/bindings/python/python-extensions.swig index 8331f0aedd6f0..f207fc6c350d9 100644 --- a/lldb/bindings/python/python-extensions.swig +++ b/lldb/bindings/python/python-extensions.swig @@ -389,9 +389,6 @@ class value(object): def __init__(self, sbvalue): self.sbvalue = sbvalue - def __nonzero__(self): - return self.sbvalue.__nonzero__() - def __bool__(self): return self.sbvalue.__bool__() @@ -454,9 +451,6 @@ class value(object): def __or__(self, other): return int(self) | int(other) - def __div__(self, other): - return int(self) / int(other) - def __truediv__(self, other): return int(self) / int(other) @@ -556,12 +550,6 @@ class value(object): def __float__(self): return float (self.sbvalue.GetValueAsSigned()) - def __oct__(self): - return '0%o' % self.sbvalue.GetValueAsUnsigned() - - def __hex__(self): - return '0x%x' % self.sbvalue.GetValueAsUnsigned() - def __len__(self): return self.sbvalue.GetNumChildren() _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
