On Tue, Dec 14, 2021 at 03:46:06PM -0000, a.kolpakov2010--- via Python-ideas 
wrote:
> It would be awesome to be able to create a list with just:
> 
> li = [1—100]

[1-100] already has a meaning in Python: it computes 1-100 = -99 and 
puts it in a list.

> or 
> 
> li = [1 .. 100]

Is that an open, closed, or half-open interval?

-- 
Steve
_______________________________________________
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/2ZJ2F2VRWODPPJXJRHJFSZ626TSHP37X/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to