This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients
Date 2001-05-07.20:13:57
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
try_rich_to_3way_compare is documented as returning -2 
for an exception.  However, in the loop, when 
try_rich_compare_bool returns -1, 
try_rich_to_3way_compare returns -1 instead of -2.  
try_rich_compare_bool does return -1 in case of 
exception.

Unclear whether this is a bug in the code or the 
comment.  The only caller of try_rich_to_3way_compare 
is do_cmp, and the latter's return conditions aren't 
documented, although at least one of do_cmp's callers 
documents its own return conditions as "-2 for an 
exception" too.

So best guess is that the code is in error, and 
that "return -1" should be replaced by "return -2" in 
try_rich_to_3way_compare.
History
Date User Action Args
2007-08-23 13:54:29adminlinkissue422108 messages
2007-08-23 13:54:29admincreate