Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
This idea has been discussed before and was rejected. While get() makes sense and has valid use cases for dictionaries which use key based lookups, there isn't a parallel for lists. In general, we do just fine without list.get(). Also, it seems that other languages have mostly made the same decision in this regard. Thank you for the suggestion though. ---------- nosy: +rhettinger resolution: -> rejected stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35262> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com