Skip to content

Instantly share code, notes, and snippets.

@jamak
Created June 7, 2012 01:58
Show Gist options
  • Save jamak/2886064 to your computer and use it in GitHub Desktop.
Save jamak/2886064 to your computer and use it in GitHub Desktop.
s = """
(lambda fc=(
lambda n: [
c for c in
().__class__.__bases__[0].__subclasses__()
if c.__name__ == n
][0]
):
fc("function")(
fc("code")(
0,0,0,0,"BYTECODE GOES HERE",(),(),(),"","",0,""
),{}
)()
)()
"""
eval(s, {'__builtins__':{}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment