[ python-Bugs-1760423 ] No docs for list comparison

SourceForge.net noreply at sourceforge.net
Fri Jul 27 14:52:34 CEST 2007


Bugs item #1760423, was opened at 2007-07-25 15:39
Message generated for change (Comment added) made by kjohnson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1760423&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Kent Johnson (kjohnson)
Assigned to: Nobody/Anonymous (nobody)
Summary: No docs for list comparison

Initial Comment:
AFAICT there is no documentation for the behaviour of <, > or == for sequences. == is perhaps obvious but it would be worth noting that < and > for lists and strings does a lexicographical comparison on the list elements or string characters.

----------------------------------------------------------------------

>Comment By: Kent Johnson (kjohnson)
Date: 2007-07-27 12:52

Message:
Logged In: YES 
user_id=49695
Originator: YES

Yes, that is what I was looking for. It seems a strange place for the
information. Could this be cross-referenced from the Library Reference? I
never even thought to look for it in the Language Ref. Other list
operations are documented in 
http://docs.python.org/lib/typesseq.html
and this page discusses comparison of library types in general:
http://docs.python.org/lib/comparisons.html

I think it would be worth either repeating or linking to the information
from the language ref on either of these pages.

Thanks,
Kent

----------------------------------------------------------------------

Comment By: Carsten Haese (chaese)
Date: 2007-07-27 12:29

Message:
Logged In: YES 
user_id=99003
Originator: NO

http://docs.python.org/ref/comparisons.html works for me.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1760423&group_id=5470


More information about the Python-bugs-list mailing list