tubeshowcase●1,116,245 videos♡ My collection 0
← Learn to Code

Learn to Code14:00

Python's collections.abc | InvertibleDict

mCoding ↗

From the creator

Learn your ABCs! That's Abstract Base Classes, by the way. Python provides a standard set of interfaces for abstract collections that are widely used. They come in the collections.abc module and can be used for type hinting purposes, runtime interface checking, as well as being usable as base classes to define many interface functions based on just a few. For instance, if you define __getitem__, __iter__ and __len__, then Python can automatically define the rest of the Mapping interface functions __contains__, keys, items, values, get, __eq__, and __ne__ by using the ones you provided. We demonstrate abstract collections by implementing an invertible dictionary class that is a MutableMapping. CONTEST CURRENTLY CLOSED! Thanks for playing! 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 #pycharm somewhere in the comment. 5. The contest is free, there is no fee required to enter. 6. Winners will be chosen randomly 1 week a

Published 2023-05-23 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code