Skip to content

Comment on PythonMonk – Learn Python in the browserparent

Comments

__import__("os").execv("/usr/bin/env", ["env"])

Gives you a few clues as well

adam.py... :) If only I knew more about bytecode...

  import inspect
  import pprint
  pp = pprint.PrettyPrinter(depth=6)
  f = inspect.currentframe()
  c = 0
  while f is not None:
      c += 1
      if c == 20:
          print f.f_code
          pp.pprint(dict(inspect.getmembers(f.f_code)))
      f = f.f_back
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.