Notices tagged with dictionary

  1. Python 3.6 dictionaries are order-preserving. I'm just wondering why there's no way to access dictionary items by index directly. When dictionary retains order, I would love to see it to be accessible just like a list. It would be quite logical.
    of course you can get keys() from dict, or items(), but I would think that's inefficient way, if I know I want to access 5th item in dictionary.
    # # # # # # !python

    Sunday, 25-Dec-16 10:18:42 UTC from loadaverage.org in context
  2. Python 3.6 dictionaries are order-preserving. I'm just wondering why there's no way to access dictionary items by index directly. When dictionary retains order, I would love to see it to be accessible just like a list. It would be quite logical.
    of course you can get keys() from dict, or items(), but I would think that's inefficient way, if I know I wont to access 5th item in dictionary.
    # # # # # # !python

    Sunday, 25-Dec-16 08:33:51 UTC from loadaverage.org
  3. # # # # http://ur1.ca/83us2

    Saturday, 11-Feb-12 06:09:12 UTC from web in context
  4. # # http://ur1.ca/83urk

    Saturday, 11-Feb-12 06:08:12 UTC from web in context
  5. # # http://ur1.ca/83ur0

    Saturday, 11-Feb-12 06:06:55 UTC from web