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 Anton.Afanasyev
Recipients Anton.Afanasyev, pitrou, rhettinger
Date 2014-04-29.06:27:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398752823.28.0.548808771878.issue21321@psf.upfronthosting.co.za>
In-reply-to
Content
Hi Antoine,
my test works for me. It can be either
>>> a = [1, 2, 3]
or
>>> a = iter([1, 2, 3])
, no matter: both objects will be +1 referenced after taking
>>> b = islice(a, 1)
. 
My test failed without patch and passed with one.

But your test is more straightforward, thanks.
Attaching patches with your test.
History
Date User Action Args
2014-04-29 06:27:03Anton.Afanasyevsetrecipients: + Anton.Afanasyev, rhettinger, pitrou
2014-04-29 06:27:03Anton.Afanasyevsetmessageid: <1398752823.28.0.548808771878.issue21321@psf.upfronthosting.co.za>
2014-04-29 06:27:03Anton.Afanasyevlinkissue21321 messages
2014-04-29 06:27:02Anton.Afanasyevcreate