reference doc problem

https://docs.python.org/3.5/reference/lexical_analysis.html#keywords describes 'is' as a keyword, yet https://docs.python.org/3.5/reference/datamodel.html#objects-values-and-type... describes 'is' as an operator. Which is it? If it really is an operator (too?), shouldn't it be here: https://docs.python.org/3.5/reference/lexical_analysis.html#operators as well? -- Regards, Christopher Barry

Yes. `is`, `and`, `or`, `not` are both keyword and operator. keyword means it's reserved word for language. User can't use the word for name. But how language uses the keyword is different thing. Some keywords (def, if, for...) are used for syntax. Some keywords (and, is, ...) are used for operator. On Sun, Jan 1, 2017 at 5:17 AM, Christopher Barry <cbarry@symbiaudix.com> wrote:

Yes. `is`, `and`, `or`, `not` are both keyword and operator. keyword means it's reserved word for language. User can't use the word for name. But how language uses the keyword is different thing. Some keywords (def, if, for...) are used for syntax. Some keywords (and, is, ...) are used for operator. On Sun, Jan 1, 2017 at 5:17 AM, Christopher Barry <cbarry@symbiaudix.com> wrote:
participants (2)
-
Christopher Barry
-
INADA Naoki