Raymond Hettinger <[email protected]> added the comment:
Returning the same object vs new object for bound methods is a
non-guaranteed implementation detail (as long the other semantics remain
true). I think Martin's real concern is that trying to intern bound
methods would be a can of worms (one that I wouldn't want to open).
FWIW, str.join ignored by this patch. The "str" builtin is an
overridable builtin (LOAD_GLOBAL "str" LOAD_ATTR "join"). In contrast,
",".join or "{}".format does not have dynamically changeable behavior
(LOAD_CONST "{}" LOAD_ATTR "format").
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue6133>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com