Jump to content

Incorrect Documentation of Python dict.keys() method


Recommended Posts

This page describes pythons dictionary.keys() Method as follows:

Quote

The keys() method returns a view object. The view object contains the keys of the dictionary, as a list.

This, however, is only correct in python 2.x, in python 3.x the keys() method returns a dict_keys Object.

dict_keys.png.9d2c2e56f85d70737cf1018d1b767784.png

Please note that i have never submitted an issue to w3schools before, i dont know if this is the right place to do it or if they intended their Documentation for python 2.x only.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...