From 00d1c583af06dbcc19c00716b34bf22ffaed2655 Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Wed, 8 Oct 2025 06:04:29 +0530 Subject: [PATCH] Add support for is and is not keywords --- pythonbpf/expr_pass.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pythonbpf/expr_pass.py b/pythonbpf/expr_pass.py index aee2ab1..2c734ea 100644 --- a/pythonbpf/expr_pass.py +++ b/pythonbpf/expr_pass.py @@ -228,6 +228,8 @@ def _handle_comparator(func, builder, op, lhs, rhs): ast.LtE: "<=", ast.Gt: ">", ast.GtE: ">=", + ast.Is: "==", + ast.IsNot: "!=", } if type(op) not in comparison_ops: