By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,345 Members | 1,758 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,345 IT Pros & Developers. It's quick & easy.

hash comments in interactive shell

P: n/a

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:
a = 5
# and now for some multiplication ... a * 10 50

I would prefer that the output be:
a = 5
# and now for some multiplication
a * 10 50

For comparison, end of line comments don't behave this way, which seems
a = 5
a * 10 # end of line comment


http:// ift

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.