[Python-ideas] Implicit String Concatenation
g.brandl at gmx.net
Wed Apr 11 23:06:54 CEST 2007
Jason Orendorff schrieb:
> On 4/11/07, Jim Jewett <jimjjewett at gmail.com> wrote:
>> I have never seen a string concatentation that would look worse
>> because of a "+".
>> I *have* seen some bugs where a comma was forgotten, and two arguments
>> got invisibly jammed together. That's a pain to debug in C; in python
>> with default values, the interpreter may not even gripe sensibly.
> Oh. I just realized this happens a lot out here. Where I work, we
> use scons, and each SConscript has a long list of filenames:
> sourceFiles = [
> #...many lines omitted...
> It's a common mistake to leave off a comma, and then scons complains
> that it can't find 'foo.cbar.c'. This is pretty bewildering behavior
> even if you *are* a Python programmer, and not everyone here is.
I think that convinces me to support the removal.
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.
More information about the Python-ideas