This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mdk
Recipients docs@python, mdk
Date 2020-05-07.20:48:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588884503.92.0.729674513869.issue40552@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-05-07 20:48:23mdksetrecipients: + mdk, docs@python
2020-05-07 20:48:23mdksetmessageid: <1588884503.92.0.729674513869.issue40552@roundup.psfhosted.org>
2020-05-07 20:48:23mdklinkissue40552 messages
2020-05-07 20:48:23mdkcreate