[issue33103] Syntax to get multiple arbitrary items from an iterable
Change by amjad ben hedhili <amjadbenhedh...@gmail.com>: -- title: Syntax to get multiple items from an iterable -> Syntax to get multiple arbitrary items from an iterable ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33103> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33103] Syntax to get multiple items from an iterable
New submission from amjad ben hedhili <amjadbenhedh...@gmail.com>: It will be much of improvement for readability to write: my_list = ["John", "Richard", "Alice", 1, True, 2.1, "End"] a, b, c = my_list[1, 3, -1] instead of: my_list = ["John", "Richard", "Alice", 1, True, 2.1, "End"] a, b, c = my_list[1], my_list[3], my_list[-1] -- messages: 314095 nosy: amjad ben hedhili priority: normal severity: normal status: open title: Syntax to get multiple items from an iterable type: enhancement ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33103> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33102] get the nth folder of a given path
Change by amjad ben hedhili <amjadbenhedh...@gmail.com>: -- title: get the nth folder -> get the nth folder of a given path ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33102> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33102] get the nth folder
New submission from amjad ben hedhili <amjadbenhedh...@gmail.com>: It will be handy if there was an os or os.path function that returns the path to the nth directory in a given path for example: given path = "C:\Users\User\AppData\Local\Programs\Python\Python36\Lib\asyncio\__init__.py" os.path.nthpath(path, 2) returns "C:\Users\User\AppData\Local\Programs\Python\Python36\Lib" -- messages: 314094 nosy: amjad ben hedhili priority: normal severity: normal status: open title: get the nth folder type: enhancement ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33102> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com