On Thu, Aug 27, 2020 at 11:13 PM M.-A. Lemburg <m...@egenix.com> wrote: > For those cases, where a list can have a variable > number of entries (e.g. optional arguments, file lists, etc.), > code should clearly branch on list length and then determine the > right strategy to fetch items.
Pattern matching seems promising here (unless it's a straight-forward iteration where you do the same thing for each element). ChrisA _______________________________________________ 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/4VEGYQJORWNEHT2WQ2IX4HLWQXECOHIA/ Code of Conduct: http://python.org/psf/codeofconduct/