Skip to content

Instantly share code, notes, and snippets.

@sakakendo
Last active March 4, 2018 13:44
Show Gist options
  • Save sakakendo/572b95b5964f1a6e2bd6fff1512cabe5 to your computer and use it in GitHub Desktop.
Save sakakendo/572b95b5964f1a6e2bd6fff1512cabe5 to your computer and use it in GitHub Desktop.
# coding: utf-8
# Your code here!
class C:
def __init__(self):
print(dir(),type(self))
def f(self):
print(dir())
def f1(self):
val=1
print(dir())
def f2(self):
f3=lambda x :print(x)
print(dir())
print(self.__dict__)
import builtins,inspect
#inspect.getfile(dir)
#print(dir,type(__main__.C))
c=C()
c.f()
c.f1()
c.f2()
print(dir())
print(c.__dict__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment