print ending with comma

2005-07-19 Thread jamesthiele . usenet
I recently ran into the issue with 'print' were, as it says on the web page called Python Gotchas (http://www.ferg.org/projects/python_gotchas.html): The Python Language Reference Manual says, about the print statement, A \n character is written at the end, unless the print statement ends with a

Re: print ending with comma

2005-07-19 Thread Duncan Booth
wrote: I recently ran into the issue with 'print' were, as it says on the web page called Python Gotchas (http://www.ferg.org/projects/python_gotchas.html): The Python Language Reference Manual says, about the print statement, A \n character is written at the end, unless the print

Re: print ending with comma

2005-07-19 Thread André Roberge
[EMAIL PROTECTED] wrote: [snip] A \n character is written at the end, unless the print statement ends with a comma. What it doesn't say is that if the print statement does end with a comma, a trailing space is printed. -- But this isn't exactly correct either. If you run this program: