4 Sep
2019
4 Sep
'19
2:45 a.m.
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