04:44Python Iterators! COPY or NO COPY?
From the creator
Which Python builtins make copies of your data and which don't? Is it better to use reversed, slice a list backwards, or fall back to indices? What about for a numpy array? We take a look at how Python's reversed builtin is able to iterate over your sequence without making a copy of it, and discuss which other builtins make copies and which don't. CONTEST CURRENTLY CLOSED! OFFICIAL CONTEST RULES: 1. All entries must comply with the YouTube community guidelines ( http://www.youtube.com/t/community_guidelines) and YouTube Terms of Service (http://www.youtube.com/static?gl=US&template=terms). Entries that violate YouTube guidelines are automatically disqualified. 2. YouTube is not a sponsor of the contest and viewers are required to release YouTube from any liability related to the contest. 3. Privacy notice: no personal data will be collected for this contest. 4. In order to enter, you must (a) be one of my subscribers, AND (b) make a top-level comment to the video including #pyplease somewhere in the comment. 5. The contest is free, there is no fee required to enter. 6. Winners will be chosen randomly 1 week after the date the video went live from all users who have entered and not been disqualified. 7. Each winner will be notified via a comment reply from me that details what prize was won (e.g. "Congratulations! You have won XYZ. Please email me."). I will ask the winner to contact me by email, and I will reply through email with a random token which must be posted as ano
Published 2023-01-02 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





