Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can find the function source like this:

sage: ZZ.__contains__.__doc__ 'File: sage/structure/parent.pyx (starting at line 950)...

I don't know if this will work generally. Also, here are listed many operators with their corresponding names.

You can find the function source like this:

sage: ZZ.__contains__.__doc__
'File: sage/structure/parent.pyx (starting at line 950)...

950)...

I don't know if this will work generally. Also, here are listed many operators with their corresponding names.

You can find the function source like this:

sage: ZZ.__contains__.__doc__
'File: sage/structure/parent.pyx (starting at line 950)...

and what object it belongs to with ZZ.__contains__.__objclass__ (and then you can do ZZ.__contains__.__objclass__??). I don't know if this will work generally. generally.

Also, here are listed many operators with their corresponding names.