1w6 uRPG 1w6 uRPG
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • Directory

http://sn.1w6.org/file/sl-20161225T083503-y8gcjmw.html

http://sn.1w6.org/file/sl-20161225T083503-y8gcjmw.html
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.
#python3 #python36 #python #dict #dictionary #index !python

Notices where this attachment appears

  1. sl sl

    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 log…

    Sunday, 25-Dec-16 08:33:51 UTC
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

1w6 uRPG is a microblogging service brought to you by Arne (Drak) Babenhauserheide. It runs the StatusNet microblogging software, version 1.1.1-release, available under the GNU Affero General Public License. The running version includes the patches from draketo.de/proj/statusnet-patches.

Creative Commons Attribution 3.0 All 1w6 uRPG content and data are available under the Creative Commons Attribution 3.0 license.