Jim Jewett wrote:

> Rationale for Removing Implicit String Concatenation
> 
>     Implicit String concatentation can lead to confusing, or even
>     silent, errors. [1]
> 
>         def f(arg1, arg2=None): pass
> 
>         f("abc" "def")  # forgot the comma, no warning ...
>                         # silently becomes f("abcdef", None)
> 
>     or, using the scons build framework,
> 
>         sourceFiles = [
>         'foo.c',
>         'bar.c',
>         #...many lines omitted...
>         'q1000x.c']
> 

Since your first example omits the comma, I think this one should, too.

          sourceFiles = [
          'foo.c'
          'bar.c',
          #...many lines omitted...
          'q1000x.c']

That is, either both examples should show an error, or both examples 
should work, but point out how easy it is to make an error.

Eric.


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to