Re: [Tutor] how to print array without adding newline

2012-09-28 Thread wrw
On Sep 6, 2012, at 9:49 AM, vi...@thepenguin.org wrote: > Thank you for your reply. I understand that it is odd, but my program is > being called from a hubot and returning data to it as well. I have figured > out how to make the changes to get it to output the correct data in the > correct for

Re: [Tutor] how to print array without adding newline

2012-09-28 Thread vicki
t[5] except Exception, err: print 'Caught an exception' print newlist, --- Vicki > ---Original Message--- > From: Dave Angel > To: vickistan > Cc: tutor@python.org > Subject: Re: [Tutor] how to print array without adding newline > Sent: Sep 06 '12 0

Re: [Tutor] how to print array without adding newline

2012-09-06 Thread Alan Gauld
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 possibl

Re: [Tutor] how to print array without adding newline

2012-09-06 Thread Dave Angel
On 09/06/2012 09:49 AM, vi...@thepenguin.org wrote: > Thank you for your reply. I understand that it is odd, but my program is > being called from a hubot and returning data to it as well. I have figured > out how to make the changes to get it to output the correct data in the > correct format,

Re: [Tutor] how to print array without adding newline

2012-09-06 Thread Oscar Benjamin
On Sat, 18 Aug 2012 18:17:16 -0700 (PDT), vickistan wrote: Hello: I am trying to output an array to another program that takes an array as input, but the print statement adds a newline. If it were adding to each individual element, I could solve it easily, but it is adding one at the end of

Re: [Tutor] how to print array without adding newline

2012-09-06 Thread Alan Gauld
On 19/08/12 02:17, vickistan wrote: Hello: I am trying to output an array to another program that takes an array as input You are printing a list. You are not passing an 'array' to anything. What exavctly does the other program expect to see. An array object - as defined in what language? or a

Re: [Tutor] how to print array without adding newline

2012-09-06 Thread Dave Angel
On 08/18/2012 09:17 PM, vickistan wrote: > Hello: I am trying to output an array to another program that takes an array > as input, but the print statement adds a newline. If it were adding to each > individual element, I could solve it easily, but it is adding one at the end > of the array. Is the

[Tutor] how to print array without adding newline

2012-09-06 Thread vickistan
Hello: I am trying to output an array to another program that takes an array as input, but the print statement adds a newline. If it were adding to each individual element, I could solve it easily, but it is adding one at the end of the array. Is there another way to print an array besides print