A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-January/137794.html below:

[Python-Dev] bytes & bytearray

[Python-Dev] bytes & bytearray [Python-Dev] bytes & bytearrayAntoine 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.

Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4