Skip to content

Instantly share code, notes, and snippets.

@EntityReborn
Created May 9, 2011 01:41
Show Gist options
  • Save EntityReborn/961896 to your computer and use it in GitHub Desktop.
Save EntityReborn/961896 to your computer and use it in GitHub Desktop.
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