This is how slices are used in the python standard library, indeed, but that does not stop me from interpreting the slices as "inclusive by default" in my library. The inconsistency with the rest of the python standard library could be misleading, but I think maybe less than off-by-1 errors?
You raise a good point however, that is: how to write a slice with expliciting the inclusiveness of one of the limit values? _______________________________________________ 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/4WVUZPMUOPOPUZMLUOKCYYWZNB74PBWJ/ Code of Conduct: http://python.org/psf/codeofconduct/