V
vnkumbhani
how works python interpreter for finding comment ?
if possible find nested comment ?
if possible find nested comment ?
Ben Finney said:It works as specified in the language reference. In particular, see
Python's comments are line-end comments only. The syntax does not allow
multi-line nor nested comments.
It works as specified in the language reference. In particular, see
Python's comments are line-end comments only. The syntax does not allow
multi-line nor nested comments.
how works python interpreter for finding comment ?
if possible find nested comment ?
If you need to find it yourself, you can use the module tokenize.how works python interpreter for finding comment ?
if possible find nested comment ?
Dennis Lee Bieber said:Python does not have "nested comment". Comments begin at any #
character that is not inside a string (something inside ' or " pairs).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.