Mailing List Archive

[ python-Bugs-1760423 ] No docs for list comparison
Bugs item #1760423, was opened at 2007-07-25 15:39
Message generated for change (Tracker Item Submitted) made by Item Submitter
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.

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1760423&group_id=5470
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[ python-Bugs-1760423 ] No docs for list comparison [ In reply to ]
Bugs item #1760423, was opened at 2007-07-25 11:39
Message generated for change (Comment added) made by chaese
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: Carsten Haese (chaese)
Date: 2007-07-27 08: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
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[ python-Bugs-1760423 ] No docs for list comparison [ In reply to ]
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
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[ python-Bugs-1760423 ] No docs for list comparison [ In reply to ]
Bugs item #1760423, was opened at 2007-07-25 15:39
Message generated for change (Comment added) made by m_n_summerfield
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: Mark Summerfield (m_n_summerfield)
Date: 2007-08-03 11:19

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

I've added a note plus a cross-reference to the comparisons coverage in
the language reference.
This won't appear until Python 2.6 though.

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

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
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[ python-Bugs-1760423 ] No docs for list comparison [ In reply to ]
Bugs item #1760423, was opened at 2007-07-25 15:39
Message generated for change (Comment added) made by gbrandl
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: Closed
>Resolution: Fixed
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: Georg Brandl (gbrandl)
Date: 2007-08-03 11:36

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

Fixed in rev. 56698.

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

Comment By: Mark Summerfield (m_n_summerfield)
Date: 2007-08-03 11:19

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

I've added a note plus a cross-reference to the comparisons coverage in
the language reference.
This won't appear until Python 2.6 though.

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

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
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com