Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No docs for list comparison #45244

Closed
kjohnson mannequin opened this issue Jul 25, 2007 · 5 comments
Closed

No docs for list comparison #45244

kjohnson mannequin opened this issue Jul 25, 2007 · 5 comments
Labels
docs Documentation in the Doc dir

Comments

@kjohnson
Copy link
Mannequin

kjohnson mannequin commented Jul 25, 2007

BPO 1760423
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-08-03.11:36:02.000>
created_at = <Date 2007-07-25.15:39:50.000>
labels = ['docs']
title = 'No docs for list comparison'
updated_at = <Date 2007-08-03.11:36:02.000>
user = 'https://bugs.python.org/kjohnson'

bugs.python.org fields:

activity = <Date 2007-08-03.11:36:02.000>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2007-07-25.15:39:50.000>
creator = 'kjohnson'
dependencies = []
files = []
hgrepos = []
issue_num = 1760423
keywords = []
message_count = 5.0
messages = ['32553', '32554', '32555', '32556', '32557']
nosy_count = 4.0
nosy_names = ['georg.brandl', 'kjohnson', 'chaese', 'm_n_summerfield']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1760423'
versions = ['Python 2.5']

@kjohnson
Copy link
Mannequin Author

kjohnson mannequin commented Jul 25, 2007

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.

@kjohnson kjohnson mannequin closed this as completed Jul 25, 2007
@kjohnson kjohnson mannequin added the docs Documentation in the Doc dir label Jul 25, 2007
@chaese
Copy link
Mannequin

chaese mannequin commented Jul 27, 2007

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

@kjohnson
Copy link
Mannequin Author

kjohnson mannequin commented Jul 27, 2007

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

@mnsummerfield
Copy link
Mannequin

mnsummerfield mannequin commented Aug 3, 2007

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.

@birkenfeld
Copy link
Member

Fixed in rev. 56698.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant