Skip to content

Instantly share code, notes, and snippets.

@GPHemsley
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save GPHemsley/9400122 to your computer and use it in GitHub Desktop.

Select an option

Save GPHemsley/9400122 to your computer and use it in GitHub Desktop.
Table of collection data types in Python
@GPHemsley
Copy link
Copy Markdown
Author

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

@GPHemsley
Copy link
Copy Markdown
Author

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

@GPHemsley
Copy link
Copy Markdown
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