Concerning my previous email,
Yes, my mistake. I'd forgotten (ironically) that the whole point is that it's an expression itself.
So
> while (value:=get_next_pool_item()).in_use:
> print(value.refcount())
would be the appropriate analogue.
Consequently, my example is invalid. A better example would have been where one needs to access more than one attribute of the expressionwhile (node.x, node.y) > (5.0, 5.0) given node = get_neighbours(node):
pass
There was some criticism about the length of the `given`, maybe it is possible to _repurpose_ `with` keyword:while (x, y) > (5.0, 5.0) given x, y = get_neighbours(node):pass
while (x, y) > (5.0, 5.0) with x, y = get_neighbours(node):pass