[Python-Dev] bytes & bytearray

Antoine Pitrou solipsis at pitrou.net
Mon Jan 19 18:54:54 CET 2015

On Mon, 19 Jan 2015 12:01:36 -0500
"Eric V. Smith" <eric at 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.



More information about the Python-Dev mailing list