[issue33103] Syntax to get multiple arbitrary items from an iterable

AmjadHD report at bugs.python.org
Wed Mar 21 09:21:16 EDT 2018


AmjadHD <amjadbenhedhili at outlook.com> added the comment:

Yes that's a way to do it but "a, b, c = my_list[1, 3, -1]" seems so pythonic and straight forward, it's like formatting, python had already 3 methods to do it when it introduced a 4th one (f-strings), easier is better especially in python.

----------
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33103>
_______________________________________


More information about the Python-bugs-list mailing list