On Thu, Aug 27, 2020 at 6:32 PM Steven D'Aprano <st...@pearwood.info> wrote:
> Personally, I found your examples underwhelming because they're mostly > repetitions of the same pattern. > That's surprising to me. When I see the same pattern over and over that's when I most want to refactor into a common function/method. The repetition is annoying and the solution is easy and obvious. If the cases were all different it'd be much more complicated and chances are there wouldn't be a simple function that covered all cases. Do you not usually refactor duplicated code? What *do* you refactor? I'd find it more interesting if there > were a larger variety of cases > This sort of sounds like the problem. The examples aren't meant to be interesting.
_______________________________________________ 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/BH34SBGCROZKDTZQLPZLJLUAAPMNYQSF/ Code of Conduct: http://python.org/psf/codeofconduct/