On 9/08/20 10:43 am, Guido van Rossum wrote:
But integer ranges? I guess they would be useful to catch array indexing mistakes,
I'm not sure they would. For an index error to be caught at compile time, the thing being indexed has to have a size known to the compiler. This was always the case in Pascal, and sometimes is in C/C++/C#/Java, but almost never is in Python. -- Greg _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/5JP2FHLG2DYBJ6QXHSWL5GQIJFAJF2GV/ Code of Conduct: http://python.org/psf/codeofconduct/