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 terry.reedy
Recipients eric.smith, paul.moore, rhettinger, sreedevi.ha, steven.daprano, terry.reedy
Date 2020-09-25.04:05:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601006735.88.0.449325153566.issue41774@roundup.psfhosted.org>
In-reply-to
Content
Timings depend on multiple factors, including implementation (cpython versus pypy versus cython, etc) and complexity of the keep/discard decision. I said in the proposed text that a listcomp may be faster.  I think that sufficient; anyone who cares can test their specific case.

I like the simple ad easy 'slice replacement = iterator' form because it illustrates to me that we have done something right with Python's design.
History
Date User Action Args
2020-09-25 04:05:35terry.reedysetrecipients: + terry.reedy, rhettinger, paul.moore, eric.smith, steven.daprano, sreedevi.ha
2020-09-25 04:05:35terry.reedysetmessageid: <1601006735.88.0.449325153566.issue41774@roundup.psfhosted.org>
2020-09-25 04:05:35terry.reedylinkissue41774 messages
2020-09-25 04:05:35terry.reedycreate