[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread Sasha Ovsankin

New submission from Sasha Ovsankin:

Python 3.4.0 (default, May 20 2014, 20:42:24)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type help, copyright, credits or license for more information.
 zip([1, 2, 3], [a, b, c])
zip object at 0x1017c79c8



Python 2.7.5 (default, Mar  9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type help, copyright, credits or license for more information.
 zip([1, 2, 3], [a, b, c])
[(1, 'a'), (2, 'b'), (3, 'c')]

--
components: Library (Lib)
messages: 219348
nosy: Sasha.Ovsankin
priority: normal
severity: normal
status: open
title: results of `zip` are displayed as 'zip object at 0xx
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21607
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread Sasha Ovsankin

Sasha Ovsankin added the comment:

It's also showing up in iPython. list(...) is a reasonable workaround but I 
disagree with the not a bug opinion. This is definitely the regression vs 
Python 2. Who else can I talk to about reopening this?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21607
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread Sasha Ovsankin

Sasha Ovsankin added the comment:

 How do you display the contents of an iterable without using them up 

In general case you can't, but zip object _is_ reusable iterable so we can 
reuse it?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21607
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread Sasha Ovsankin

Sasha Ovsankin added the comment:

Yep, you are right. Even the zip thingy is not reusable. Oh well...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21607
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com