Memory errors and list limits?

First off, see How Big can a Python Array Get? and Numpy, problem with long arrays Second, the only real limit comes from the amount of memory you have and how your system stores memory references. There is no per-list limit, so Python will go until it runs out of memory. Two possibilities: If you … Read more

maximum value of int

In C++: #include <limits> then use int imin = std::numeric_limits<int>::min(); // minimum value int imax = std::numeric_limits<int>::max(); std::numeric_limits is a template type which can be instantiated with other types: float fmin = std::numeric_limits<float>::min(); // minimum positive value float fmax = std::numeric_limits<float>::max(); In C: #include <limits.h> then use int imin = INT_MIN; // minimum value int … Read more