On Thu, Aug 29, 2019 at 06:20:55PM +0100, Rob Cliffe via Python-ideas wrote:
isinstance(x, str | int) ==> "is x an instance of str or int"
Er, is that necessary when you can already write
isinstance(x, (str, int))
It's not *necessary* it's just nicer.
--
Steven