[Python-Dev] cmp= & key= (Re: Proposed change to logging.basicConfig)
Terry Reedy
tjreedy at udel.edu
Wed Mar 30 01:04:30 CEST 2011
More information about the Python-Dev mailing list
Wed Mar 30 01:04:30 CEST 2011
- Previous message: [Python-Dev] Proposed change to logging.basicConfig
- Next message: [Python-Dev] Security implications of pep 383
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 3/29/2011 4:02 PM, Matthew Woodcraft wrote: > Terry Reedy<tjreedy at udel.edu> wrote: >> # Experiment with 2.7 shows that cmp wins. Though too late to change, I >> consider this the worst choice of three. I think an exception should be >> raised. Failing that, I think key should win on the basis that if one >> adds a 'new-fangled' key func to an existing call with cmp (and forgets >> to remove cmp), the key func is the one intended. Also, the doc clearly >> indicates that key is considered superior to cmp. > > Neither 'wins': cmp is applied to the output of key. Added to http://bugs.python.org/issue11712 (for 2.7 only ;-) > I agree that it would have been worth documenting this explicitly. -- Terry Jan Reedy
- Previous message: [Python-Dev] Proposed change to logging.basicConfig
- Next message: [Python-Dev] Security implications of pep 383
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list