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 serhiy.storchaka
Recipients Muhammad Salem, serhiy.storchaka
Date 2017-02-27.11:14:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488194059.68.0.946004208874.issue29664@psf.upfronthosting.co.za>
In-reply-to
Content
Your example works for me.

>>> x = [1, 2, 3]
>>> y = [4, 5, 6]
>>> zipped = zip(x, y)
>>> print(zipped)
<zip object at 0xb6ff706c>
>>> print(list(zipped))
[(1, 4), (2, 5), (3, 6)]

I guess you have overridden the builtin function "zip" by setting the global variable "zip".

>>> zip = (7, 8)
>>> zipped = zip(x, y)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'tuple' object is not callable
History
Date User Action Args
2017-02-27 11:14:19serhiy.storchakasetrecipients: + serhiy.storchaka, Muhammad Salem
2017-02-27 11:14:19serhiy.storchakasetmessageid: <1488194059.68.0.946004208874.issue29664@psf.upfronthosting.co.za>
2017-02-27 11:14:19serhiy.storchakalinkissue29664 messages
2017-02-27 11:14:19serhiy.storchakacreate