You can compute the space necessary for `range`/`xrange` arithmetically

For arbitrary generator expressions you cannot.