Skip to content

bpo-40552 Add 'users' variable in code sample (tutorial 4.2). #19992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 23, 2020

Conversation

awecx
Copy link
Contributor

@awecx awecx commented May 8, 2020

Previoulsy, running the sample code in the 4.2 section from tutorial would yield:

NameError: name 'users' is not defined

I've defined a 'users' variable and the code runs as expected:

>>> active_users
{'Hans': 'active', '景太郎': 'active'}

https://bugs.python.org/issue40552

Copy link
Contributor

@raulcd raulcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@nanjekyejoannah
Copy link
Contributor

Thanks for correcting the tutorial @awecx .

@nanjekyejoannah nanjekyejoannah merged commit 6fad3e6 into python:master May 23, 2020
arturoescaip pushed a commit to arturoescaip/cpython that referenced this pull request May 24, 2020
…GH-19992)

* Add 'users' variable in code sample.

* 📜🤖 Added by blurb_it.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants