I don't think this will fly - if not for any other reason, it is a very rare pattern
to take place alongside such important flow-control statements as continue and break
But for your convenience, here is a small wrapper that, along with the
walrus operator, could be used when you need that functionality:
```
class Repeatable:
def __init__(self, it):
self.it = it
self.repeat_last = False
self.last_item = None
def repeat(self):
self.repeat_last = True
def __iter__(self):
for item in
self.it:
while self.repeat_last:
self.repeat_last = False
yield self.last_item
self.last_item = item
yield item
test = 1
for x in (rx:=Repeatable(range(3))):
print(x)
if x == test:
test = -1
rx.repeat()
```