On Mon, 19 Jan 2015 12:01:36 -0500 "Eric V. Smith" <e...@trueblade.com> wrote: > > I'd return a new copy (or, not implement it at all and let the default > machinery call __mod__, and do the assignment). That's the least > surprising to me, since the goal is to be compatible with 2.7's str > %-formatting.
+1 for a copy. There's no reasonable use case to make the formatting in-place, and it wouldn't buy any significant performance win anyway. Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com