[issue14350] Strange Exception from copying an iterable

2012-03-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: BTW, can we add support for copying iterators by using itertools.tee -- ___ Python tracker ___ ___

[issue14350] Strange Exception from copying an iterable

2012-03-18 Thread Jakob Bowyer
Jakob Bowyer added the comment: C:\Users\Jakob>python -c "import copy; copy.copy(iter([1,2,3]))" Traceback (most recent call last): File "", line 1, in File "T:\languages\Python27\lib\copy.py", line 96, in copy return _reconstruct(x, rv, 0) File "T:\languages\Python27\lib\copy.py", li

[issue14350] Strange Exception from copying an iterable

2012-03-17 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue14350] Strange Exception from copying an iterable

2012-03-17 Thread R. David Murray
R. David Murray added the comment: @Ramchandra: I think you referring to the traceback format (which is indeed less useful than a normal Python traceback in the context of this tracker). The OP, however, is referring to the exception itself: TypeError: object.__new__(listiterator) is not s

[issue14350] Strange Exception from copying an iterable

2012-03-17 Thread Ramchandra Apte
Ramchandra Apte added the comment: I get a normal exception. I see ipython at the top level in 'T:\languages\Python27\Scripts\ in ()' Perhaps you ran ipython accidentally? -- nosy: +ramchandra.apte ___ Python tracker

[issue14350] Strange Exception from copying an iterable

2012-03-17 Thread Jakob Bowyer
New submission from Jakob Bowyer : Running: Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] Code: import copy copy.copy(iter([1,2,3])) Exception: --- TypeError Traceb