Skip to content

Files

Latest commit

 

History

History
7 lines (4 loc) · 302 Bytes

using-cmp-argument.md

File metadata and controls

7 lines (4 loc) · 302 Bytes

Pattern: Use of cmp() argument

Issue: -

Description

Using the cmp() argument for list.sort() or the sorted built-in should be avoided, since it was removed in Python 3. Using either key or functools.cmp_to_key should be preferred. This message can't be emitted when using Python >= 3.0.