Bug or feature: double strings as one
invalid at invalid
Fri Aug 7 16:13:33 CEST 2009
On 2009-08-07, durumdara <durumdara at gmail.com> wrote:
> I found an interesting thing in Python.
> Today one of my "def"s got wrong result.
> When I checked the code I saw that I miss a "," from the list.
> l = ['?' '?']
> Interesting, that Python handle them as one string.
> print ['?' '?']
> I wanna ask that is a bug or is it a feature?
> must concatenate the strings with some sign, like "+" or "||".
In other languages like Ruby, awk, C, C++, etc. adjacent string
constants are concatenated.
Grant Edwards grante Yow! Is it clean in other
More information about the Python-list