Skip to content
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

clarify example so it runs when copied #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions python 3/koans/about_none.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ def test_what_exception_do_you_get_when_calling_nonexistent_methods_on_None(self

Don't worry about what 'try' and 'except' do, we'll talk about this later
"""
# Don't forget to unindent before you try to run this code block:
try:
None.some_method_none_does_not_know_about()
except Exception as ex:
ex2 = ex

ex2

# What exception has been caught?
self.assertEqual(__, ex2.__class__.__name__)
Expand Down