[Patches] [ python-Patches-976162 ] Deferred String Addtion:
Proof-of-concept
SourceForge.net
noreply at sourceforge.net
Sun Jun 20 06:10:22 EDT 2004
Patches item #976162, was opened at 2004-06-20 05:10
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforg-í
>U?c ÐF@ÐF@ÐF@ÐF@305470&aid=976162&group_id=5470
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 1
Submitted By: Raymond Hettinger (rhettinger)
Assigned to: Nobody/Anonymous (nobody)
Summary: Deferred String Addtion: Proof-of-concept
Initial Comment:
The attached patch demonstrats a possible
implementation for
deferred string addition. The idea is to have
str.__add__ save references to its inputs rather that
do the concatenation immediately. The moment some
other method needs the full string, it is generated
recursively so that the whole concatenation can be done
with a single join.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=976162&group_id=5470
More information about the Patches
mailing list