hash comments in interactive shell

J

John Belmonte

Hello,

I'd like to know what the rationale is for hash comments yielding a
continuation prompt (PS2) in the Python shell. I'd like to put such
comments in interactive examples, but the output is hard to follow:
50

I would prefer that the output be:
50

For comparison, end of line comments don't behave this way, which seems
inconsistent:
50

-John
 

Ask a Question

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.

Ask a Question

Members online

Forum statistics

Threads
474,264
Messages
2,571,323
Members
48,008
Latest member
KieraMcGuf

Latest Threads

Top