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 <>
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.
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: <>
2020-09-25 04:05:35terry.reedylinkissue41774 messages
2020-09-25 04:05:35terry.reedycreate