A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-April/072881.html below:

[Python-Dev] [Python-3000] PEP 30XZ: Simplified Parsing

[Python-Dev] [Python-3000] PEP 30XZ: Simplified ParsingEric V. Smith eric+python-dev at trueblade.com
Mon Apr 30 14:39:51 CEST 2007
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.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4