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/2011-March/109207.html below:

[Python-Dev] Python3 regret about deleting list.sort(cmp=...)

[Python-Dev] Python3 regret about deleting list.sort(cmp=...) [Python-Dev] Python3 regret about deleting list.sort(cmp=...)Terry Reedy tjreedy at udel.edu
Sun Mar 13 08:02:36 CET 2011
On 3/12/2011 10:52 PM, Glenn Linderman wrote:
> On 3/12/2011 7:21 PM, Terry Reedy wrote:

> The safest such character is \0,\

Works fine in Python.

> unless you are coding in C,

Then \01 is next best.

> I wouldn't have called you on this, except that it really is important
> not to give people the idea that you can blithely use a variable length
> string anywhere except at the tail of a multi-field sort string.

Sorry, my initial brief comment was for people on this list who I 
assumed understood the issue.

> general, you can't. I've long since lost track of the number of times
> I've helped people understand the fix to programs that tried that.

Thanks for explaining. I also get fussy about things I have explained 
too many time ;-).

-- 
Terry Jan Reedy

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