Testing with Python 2.7 and 3.5
for i in range(0, 1000000000):
pass
When I'm running this code with python3 everything is fine (less than 3MB memory usage)
But by python2 memory usage is 32GB (my server has only 32GB of ram)
How to fix this for Python 2.7?