Probably not exactly what you're looking for, but here's a fun one that (ab)uses the maligned walrus operator:
>>> x = {"a": "a", "b": "b"} >>> (x_without_a := dict(x)).pop("a") 'a' >>> x {'a': 'a', 'b': 'b'} >>> x_without_a {'b': 'b'}