[issue32127] tutorial on dictionaries has error in example

Toby Berla report at bugs.python.org
Fri Nov 24 14:14:29 EST 2017


New submission from Toby Berla <toby.berla at gmail.com>:

in https://docs.python.org/3/tutorial/datastructures.html: 

-----
5.5. Dictionaries
...
Here is a small example using a dictionary:

>>>
>>> tel = {'jack': 4098, 'sape': 4139}
>>> tel['guido'] = 4127
>>> tel
{'sape': 4139, 'guido': 4127, 'jack': 4098}
-----

I think the order of dictionary elements shown after 'guido' is inserted is wrong.

The correct order is: 
{'jack': 4098, 'sape': 4139, 'guido': 4127}

----------
assignee: docs at python
components: Documentation
messages: 306913
nosy: docs at python, tberla
priority: normal
severity: normal
status: open
title: tutorial on dictionaries has error in example
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32127>
_______________________________________


More information about the Python-bugs-list mailing list