Skip to content

Instantly share code, notes, and snippets.

@GPHemsley
Last active August 29, 2015 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GPHemsley/9400122 to your computer and use it in GitHub Desktop.
Save GPHemsley/9400122 to your computer and use it in GitHub Desktop.
Table of collection data types in Python
@GPHemsley
Copy link
Author

Looks like Python treats uniqueness and order as mutually exclusive (unique XOR ordered).

@GPHemsley
Copy link
Author

An implementation of the last line would likely be called OrderedFrozenSet or FrozenOrderedSet.

@GPHemsley
Copy link
Author

Reorganized table to make patterns more apparent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment