OK, I don't know how the code ended up being like this, but I'm pretty sure what was really meant was

```
if dummy:
    i = Dummy("i")
else:
    i = Symbol("i")
```

That way, you can get non-Dummy symbols, which is useful for testing.