Skip to content

Instantly share code, notes, and snippets.

@xieyuheng
Created October 7, 2017 14:53
Show Gist options
  • Save xieyuheng/7c917126482fafcea0f3851645de9fbd to your computer and use it in GitHub Desktop.
Save xieyuheng/7c917126482fafcea0f3851645de9fbd to your computer and use it in GitHub Desktop.
'''
- the challenge 1 -
write a module called 's1.py'
to implement a function called 'get_current_module'
that can pass the following assertion
'''
import s1
import sys
m1 = s1.get_current_module()
m2 = sys.modules[__name__]
assert m1 == m2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment