On Thu, Aug 27, 2020 at 11:13 PM M.-A. Lemburg <[email protected]> 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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/4VEGYQJORWNEHT2WQ2IX4HLWQXECOHIA/ Code of Conduct: http://python.org/psf/codeofconduct/
