I don't know how intelligent it really is, but it certainly doesn't add list()
to every range()
.
For example, the following:
print(range(10))
is changed to:
print(list(range(10)))
However, the following:
for el in range(10):
print(el)
is left untouched.
This clearly indicates that it's more sophisticated than a blind search-and-replace.