Elementtree and CDATA handling

Fredrik Lundh fredrik at pythonware.com
Wed Jun 15 07:23:59 EDT 2005


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> 






More information about the Python-list mailing list