MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/it4x8o/python_39_all_you_need_to_know/g5ciy82
r/Python • u/cheerfulboy • Sep 15 '20
204 comments sorted by
View all comments
Show parent comments
24
In that case, you don't like the set union operator either, which has been in Python for at least a decade. This operator replaces set(*a, *b) with a | b.
set(*a, *b)
a | b
1 u/graingert Sep 15 '20 Or {*a,*b} 1 u/energybased Sep 15 '20 yup
1
Or {*a,*b}
{*a,*b}
1 u/energybased Sep 15 '20 yup
yup
24
u/energybased Sep 15 '20
In that case, you don't like the set union operator either, which has been in Python for at least a decade. This operator replaces
set(*a, *b)witha | b.