On 03/03/2017 10:29 AM, Ed Kellett wrote:
- Which of the existing things (slice + [default], conditional on a slice, conditional on a len() call) do you think is the obvious way to do it?
[my_value] = some_list[offset:offset+1] or [default_value] -- ~Ethan~ _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/