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

documentation of zip function is error #50334

Closed
bones7456 mannequin opened this issue May 22, 2009 · 3 comments
Closed

documentation of zip function is error #50334

bones7456 mannequin opened this issue May 22, 2009 · 3 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@bones7456
Copy link
Mannequin

bones7456 mannequin commented May 22, 2009

BPO 6084
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 = 'https://github.com/birkenfeld'
closed_at = <Date 2009-05-22.09:33:33.267>
created_at = <Date 2009-05-22.09:17:49.785>
labels = ['docs']
title = 'documentation of zip function is error'
updated_at = <Date 2009-05-22.09:33:33.266>
user = 'https://bugs.python.org/bones7456'

bugs.python.org fields:

activity = <Date 2009-05-22.09:33:33.266>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2009-05-22.09:33:33.267>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2009-05-22.09:17:49.785>
creator = 'bones7456'
dependencies = []
files = []
hgrepos = []
issue_num = 6084
keywords = []
message_count = 3.0
messages = ['88182', '88183', '88184']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'bones7456']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue6084'
versions = ['Python 2.6']

@bones7456
Copy link
Mannequin Author

bones7456 mannequin commented May 22, 2009

http://docs.python.org/library/functions.html?highlight=zip#zip

In this page, the example is error:

Python 2.6.2 (r262:71600, Apr 24 2009, 10:04:30) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> x = [1, 2, 3]
>>> y = [4, 5, 6]
>>> zipped = zip(x, y)
>>> zipped
[(1, 4), (2, 5), (3, 6)]
>>> x2, y2 = zip(*zipped)
>>> x == x2, y == y2
(False, False)

The last line is "(False, False)", not True.

@bones7456 bones7456 mannequin assigned birkenfeld May 22, 2009
@bones7456 bones7456 mannequin added the docs Documentation in the Doc dir label May 22, 2009
@bones7456
Copy link
Mannequin Author

bones7456 mannequin commented May 22, 2009

>>> type(x)
<type 'list'>
>>> type(x2)
<type 'tuple'>

It cann't be equal...

@birkenfeld
Copy link
Member

Thanks, fixed in r72822.

@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