[Python-ideas] Re: Multiple arguments to str.partition and bytes.partition

2023-01-10 Thread Stephen J. Turnbull
Steven D'Aprano writes: > I mean, if all you are doing is splitting the source by some separators > regardless of order, surely this does the same job and is *vastly* more > obvious? > > >>> re.split(r'[:;]', 'foo:bar;baz') > ['foo', 'bar', 'baz'] "Obvious" yes, but it's also easy to inv

[Python-ideas] Re: Multiple arguments to str.partition and bytes.partition

2023-01-10 Thread Stephen J. Turnbull
James Addison via Python-ideas writes: > On Sun, 8 Jan 2023 at 08:32, Stephen J. Turnbull > wrote: > Trying to avoid the usual discussions about permissive parsing / > supporting various implementations in-the-wild: long-term, the least > ambiguous and most computationally-efficient environm