OT: Re: Just took a look in the perl newsgroup....
Steven Taschuk
staschuk at telusplanet.net
Thu May 29 01:25:29 EDT 2003
Quoth Fredrik Lundh:
> Steven Taschuk wrote:
[...]
> > Inherently fragile due to reliance on interning of repr(x).
>
> repr does not intern the result. but the string type caches single
> character strings (unless you switch that off when building Python)
Yes, that's what I was getting at -- the code relies on the string
repr(x) getting interned, which in the example happens to happen.
--
Steven Taschuk staschuk at telusplanet.net
Every public frenzy produces legislation purporting to address it.
(Kinsley's Law)
More information about the Python-list
mailing list