Skip to content

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

Merged
nanjekyejoannah merged 2 commits into
python:masterfrom
awecx:tutorial
May 23, 2020
Merged

bpo-40552 Add 'users' variable in code sample (tutorial 4.2).#19992
nanjekyejoannah merged 2 commits into
python:masterfrom
awecx:tutorial

Conversation

@awecx

@awecx awecx commented May 8, 2020

Copy link
Copy Markdown
Contributor

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

@raulcd raulcd left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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