Skip to content

Change statement about dictionaries? #6

Open

Description

@cdeil

Currently you have this statement about Python dictionaries:

http://nbviewer.jupyter.org/github/jakevdp/WhirlwindTourOfPython/blob/master/06-Built-in-Data-Structures.ipynb#Dictionaries

Keep in mind that dictionaries do not maintain any sense of order for the input parameters; this is by design. This lack of ordering allows dictionaries to be implemented very efficiently, so that random element access is very fast, regardless of the size of the dictionary (if you're curious how this works, read about the concept of a hash table).

Now that Python 3.6 has ordered and more efficient dictionaries, this statement should be changed, no? Maybe re-word the existing sentence starting with "This lack ..." or add a new one pointing to e.g. https://docs.python.org/3/whatsnew/3.6.html#new-dict-implementation ?

Activity

  1. jakevdp commented on Feb 14, 2017

    @jakevdp
    Owner

    Good point! I'll think about how I want to address this...

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions