On Sat, Aug 25, 2012 at 1:39 PM, Alan Gauld wrote:
>
> two adjacent strings without a comma get combined into a single string.
> Its a feature... mainly a remnant from the C foundations I suspect.
As a feature it can come in handy with long strings in expressions.
Just for reference about the "C
On 25/08/12 16:53, aklei...@sonic.net wrote:
in sequences of strings to prevent them from being
"silently"<=>"concatenated" if you were to add an entry and forget the
comma.
error if the comma is omitted when adding an entry but I don't understand
the (potential) concatenation problem.
Cons
Thanks for the clarification. Now it is clear. ak
> On Sat, Aug 25, 2012 at 11:53 AM, wrote:
>>
>> Put each entry on its own line, indented by two spaces, and leave a
>> trailing comma on the last entry. The latter is especially important
>> in sequences of strings to prevent them from being
>>
On Sat, Aug 25, 2012 at 11:53 AM, wrote:
>
> Put each entry on its own line, indented by two spaces, and leave a
> trailing comma on the last entry. The latter is especially important
> in sequences of strings to prevent them from being
> "silently"<=>"concatenated" if you were to add an entry an
aklei...@sonic.net wrote:
> Part of a previous post:
> """
> Here's the style I'd use:
>
> combos = {
> 0: 'id',
> 2: 'country',
> 3: 'type',
> 5: 'lat',
> 6: 'lon',
> 12: 'name',
> }
>
> Put each entry on its own line, indented by two spaces, and leave a
> trailing comma on the last
Part of a previous post:
"""
Here's the style I'd use:
combos = {
0: 'id',
2: 'country',
3: 'type',
5: 'lat',
6: 'lon',
12: 'name',
}
Put each entry on its own line, indented by two spaces, and leave a
trailing comma on the last entry. The latter is especially important
in sequences o