Concatenating Strings

Chris Angelico rosuav at gmail.com
Thu Apr 9 15:23:31 EDT 2015


On Fri, Apr 10, 2015 at 5:19 AM, Ben Bacarisse <ben.usenet at bsb.me.uk> wrote:
> Chris Angelico <rosuav at gmail.com> writes:
>
>> On Fri, Apr 10, 2015 at 4:46 AM, Ben Finney <ben+python at benfinney.id.au> wrote:
>>> Travis Griggs <travisgriggs at gmail.com> writes:
>>>
>>>> Here’s 3 examples:
>>>>
>>>>     if k + ‘_@‘ in documents:
>>>>
>>>>     timeKey = k + ‘_@‘
>>>>
>>>>     historyKey = thingID + ‘_’ + k
>>>
>>> In addition to the other responses, I'll point out a different issue:
>>>
>>> Your client is composing messages that munge your text. Ensure you post
>>> only the exact characters you want to type; the above is not valid
>>> Python code (try it yourself).
>>
>> I don't think they were meant to be one block. They're three
>> independent examples.
>
> I don't think that was what Ben Finney was referring to.  I would say it
> is the quotes that are the main problem being pointed out.

Erk! I honestly did not even notice that. Apparently the font Gmail's
using doesn't make them materially different from apostrophes. Kinda
makes the curly quotes rather pointless, doesn't it!

ChrisA



More information about the Python-list mailing list