parse-time optimizations

jcm grumble at usa.net
Tue May 29 15:23:23 EDT 2001


Michael Hudson <mwh at python.net> wrote:
> jcm <grumble at usa.net> writes:

>> The example "a" + "b" was, of course, an example.  Something like
>> 
>>   "some really long string (probably longer than this one) that I " +
>>   "can't quite fit onto one line in good conscience"
>> 
>> would be more realistic.  

> Well, there are other ways round that one; literal conatenation or
> backslashing the newline.

Yes, although that brings us back to one of my original motivations
for wanting to see this optimization--I think it's a better solution
than having string-literal concatenation.  I guess I just don't like
having too many wany of doing the same thing, especially in this case
where it involves extra syntax in the language.



More information about the Python-list mailing list