Ben Finney <ben+pyt...@benfinney.id.au> writes:

> vnkumbh...@gmail.com writes:
>
>> how works python interpreter for finding comment ?
>
> It works as specified in the language reference. In particular, see
> <URL:http://docs.python.org/3/reference/lexical_analysis.html#comments>.
>
>> if possible find nested comment ?
>
> Python's comments are line-end comments only. The syntax does not allow
> multi-line nor nested comments.

Although you can use unbound multi-line strings as a kind of
comment. But its often better to make the strings into doc strings
proper.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to