On 13.02.13 22:52, Maciej Fijalkowski wrote:
On Wed, Feb 13, 2013 at 11:17 PM, Greg Ewing firstname.lastname@example.org wrote:
Steven D'Aprano wrote:
The documentation for strings is also clear that you should not rely on this optimization:
It can, and does, fail on CPython as well, as it is sensitive to memory allocation details.
If it's that unreliable, why was it ever implemented in the first place?
The _trick_ was very good, the idea was - uhm - arguable. I wished I had objected, but at that time I was only fascinated.
(There are parallels on a larger scale, but I'm shutting up, intentionally.)