[New-bugs-announce] [issue40552] Enhance for loop and copy example in tutorial

Julien Palard report at bugs.python.org
Thu May 7 16:48:23 EDT 2020


New submission from Julien Palard <julien+python at palard.fr>:

During the past few weeks we got two reports of an example not working in the tutorial: [1], [2].


[1]: https://mail.python.org/archives/list/docs@python.org/message/ZJM3S2TE5UPFYIII5R4VQ4KY2WN4TKVO/
[2]: https://mail.python.org/archives/list/docs@python.org/thread/6FZ55HTMILK4P6EOYLAI7WXAY427NKQU/

Problem is: the example uses a `users` variable that is not defined.

users should be a dict, which is not straightforward for newcomers neither, so I propose to define it to:

    users = {"Hans": "active", "Andrea": "inactive", "Nils": "active"}

in the example, to make it work.

----------
assignee: docs at python
components: Documentation
keywords: easy
messages: 368373
nosy: docs at python, mdk
priority: low
severity: normal
status: open
title: Enhance for loop and copy example in tutorial
type: enhancement

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


More information about the New-bugs-announce mailing list