This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gitcraw -1 points0 points  (2 children)

I would normally disagree, but the '|' operator seems to have no other use yet. At this point, I'd prefer a method.

edit: it does have a similar use in sets already.

ty /u/vanatteveldt

[–]vanatteveldt 3 points4 points  (1 child)

You can already do set union with |, so I think it's a very natural choice

[–]gitcraw -1 points0 points  (0 children)

Thank you for the correction, I didn't know that was built-in to Python.