[docs] reference doc problem

INADA Naoki songofacandy at gmail.com
Sun Jan 1 19:56:59 EST 2017


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 at symbiaudix.com> wrote:
>
> 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-types
>
> 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
>
> _______________________________________________
> docs mailing list
> docs at python.org
> https://mail.python.org/mailman/listinfo/docs
>


More information about the docs mailing list