Terry Reedy wrote:
r wrote:
On Mar 11, 3:40 pm, Craig Allen <callen...@gmail.com> wrote:
On Mar 10, 1:39 pm, Paul Rubin <http://phr...@nospam.invalid> wrote:
Identical strings don't necessarily have the same id:
A more verbose way to put this is "Requesting a string with a value that
is the same an an existing string does not necessarily result in reuse
of the existing string but mey result in creation of a new, duplicate
string.
I'd rather go with: "All object creation will create a new object;
except for immutable for which the object creator may choose to return
an equivalent existing object."
Immutables are the exception.
--
http://mail.python.org/mailman/listinfo/python-list