Where is ^ (symmetric_difference) documented in help()?

Dan Sommers dan at tombstonezero.net
Fri Dec 22 22:41:47 EST 2017


On Fri, 22 Dec 2017 21:35:53 -0600, Peng Yu wrote:

> Hi, I see the following two lines are the same. But I'd like to find
> where ^ is documented via the help() function (I am not looking for
> the document in html)? Does anybody know? Thanks.
> 
> s.symmetric_difference(t)
> s ^ t

It's sort of documented in help(set):

 |  __xor__(self, value, /)
 |      Return self^value.

HTH,
Dan




More information about the Python-list mailing list