Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  def __main__():
    said = input("say something\r\n")
    print(said)
Now there may well be an exploit in the interpreter itself, but I'd say that's a very different thing.


You're in for a nasty surprise if (for whatever reason) this code is executed using Python 2:

https://docs.python.org/2/library/functions.html#input

    Equivalent to eval(raw_input(prompt)).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: