Mark Dickinson <[EMAIL PROTECTED]> added the comment: The behavior of range is very unlikely to be changed in Python 2.x, for backwards compatibility reasons.
But it's a great idea! So great, in fact, that it's already been implemented for Python 3.0. :-) There range() behaves like a generator (in all contexts); if you really want a list, you'd write: list(range(2**20)) Thanks! ---------- nosy: +marketdickinson resolution: -> rejected status: open -> closed _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3508> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com