Bill Allombert on Sat, 10 Jul 2004 00:25:41 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: print bug |
On Sat, Jul 03, 2004 at 03:17:31PM +0200, Ralf Stephan wrote: > This is in 2.2.7: > > ? print("v="Pi) > v=3.141592653589793238462643383 > > ? print([1,2,3]) > [1, 2, 3] > > ? print("v="[1,2,3]) > *** unexpected character: print("v="[1,2,3]) This is a side effect of 2.2.4 C4 4- automatic concatenation for strings: use longest match for expression. print("a"[1]) is not valid since "a" is not a vector print("a", [1]) prints 'a[1]' I am not yet sure if it is a bug, but generally you should use commas to separate objects in print(). Like in print("v=",[1,2,3]). Not doing so is slightly deprecated. Cheers, Bill.