This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Kshitiz17, brandtbucher, rhettinger, steven.daprano, xtreak
Date 2021-06-02.01:11:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622596266.67.0.605070355663.issue44276@roundup.psfhosted.org>
In-reply-to
Content
In difflib, there's an example where it would be easy to run performance tests.

            match tag:
                case 'replace':
                    g = self._fancy_replace(a, alo, ahi, b, blo, bhi)
                case 'delete':
                    g = self._dump('-', a, alo, ahi)
                case 'insert':
                    g = self._dump('+', b, blo, bhi)
                case 'equal':
                    g = self._dump(' ', a, alo, ahi)
                case _:
                    raise ValueError('unknown tag %r' % (tag,))
History
Date User Action Args
2021-06-02 01:11:06rhettingersetrecipients: + rhettinger, steven.daprano, xtreak, brandtbucher, Kshitiz17
2021-06-02 01:11:06rhettingersetmessageid: <1622596266.67.0.605070355663.issue44276@roundup.psfhosted.org>
2021-06-02 01:11:06rhettingerlinkissue44276 messages
2021-06-02 01:11:06rhettingercreate