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 rhettinger
Recipients eric.smith, paul.moore, rhettinger, sreedevi.ha, steven.daprano, terry.reedy
Date 2020-09-25.18:37:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601059047.19.0.73635041701.issue41774@roundup.psfhosted.org>
In-reply-to
Content
Sorry for the wording of the last message.  Go ahead with whatever you would like do :-) 

Was only trying to point-out that the generator semantics don't interact nicely with slice assignments:

    $ python3.9 -m timeit -s 'a=list(range(1000))' 'b=a[:]' 'b[:]=(x for x in a)'
    5000 loops, best of 5: 46.6 usec per loop

    $ python3.9 -m timeit -s 'a=list(range(1000))' 'b=a[:]' 'b[:]=[x for x in a]'
    10000 loops, best of 5: 26.3 usec per loop
History
Date User Action Args
2020-09-25 18:37:27rhettingersetrecipients: + rhettinger, terry.reedy, paul.moore, eric.smith, steven.daprano, sreedevi.ha
2020-09-25 18:37:27rhettingersetmessageid: <1601059047.19.0.73635041701.issue41774@roundup.psfhosted.org>
2020-09-25 18:37:27rhettingerlinkissue41774 messages
2020-09-25 18:37:27rhettingercreate