4 ms·
The fact that python changed that behavior in the past (i.e. range) shows that writing correct programs usually works in practice.
by lixtra 6y ago
The fact that python changed that behavior in the past (i.e. range) shows that writing correct programs usually works in practice.
- Skunkleton 6y agoThe fact that python has a lazy and non-lazy range is pretty much the point. Yes there are (common) trivial cases where you don't care if the range is lazy or not, but in general it is something you need to be aware of.