Created
May 9, 2011 01:41
-
-
Save EntityReborn/961896 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
class Klass(object): | |
def func(self): | |
"""Ohai from Klass.func""" | |
print self.func.__doc__ | |
def Func(): | |
"""Ohai from __main__.Func""" | |
print Func.__doc__ | |
k = Klass() | |
k.func() # Ohai from Klass.func | |
Func() # Ohai from __main__.Func |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment