Terry Reedy wrote:

>> the above are six ways to write the same string literal in Python.
>
> Minor nit: I believe 'hell' + 'o' is two string literals and a runtime 
> concatenation operation.

I guess I should have written "constant".

on the other hand, while the difference might matter for current python
interpreter implementations, it doesn't really matter for the user.  after
the operation, they end up with a string object that doesn't contain what
they wrote.

</F> 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to