Sean 'Shaleh' Perry
shalehperry at attbi.com
Fri Mar 29 22:29:03 CET 2002
On 29-Mar-2002 Robin Becker wrote:
> Is there some special reason why python inhibits string copying. I
> suppose there's some attempt being made to make these constants. To make
> differing versions of 'abc' one has to resort to silliness like 'ab'+'c'
yes, the documentation is pretty clear that a string is a constant once
defined. The current copy is a reference implementation is supposed to be an
optimization for standard usage.
What are you trying to accomplish where this is a hindrance rather than a gain?
More information about the Python-list