The os.path is not a great example, but imagine a loop where inside the body you mutate some state of an instance and then directly access it. Compare the following with the os.path example:
for animal in circus.animals:
circus.next_free_clown.assign(animal)
# circus.next_free_clown changes in every iteration