[Tutor] how to print array without adding newline

Alan Gauld alan.gauld at btinternet.com
Thu Sep 6 19:00:37 CEST 2012

On 06/09/12 15:10, Dave Angel wrote:

>> except Exception, err:
>>      print 'Caught an exception'
> You should probably send this and any other error messages to stderr, as
> stdout is presumably being consumed by the robot.

And you probably shouldn't use such a bland error message for every 
possible error. At the very least print the error type but better
still store the error data in a log file if you can't just print
it out.

Alan G
Author of the Learn to Program web site

More information about the Tutor mailing list