News for hackers. Stuff that matters.
Re:Virtualizing APIs with Go and Python by _RPM on Friday December 11, 2015 @10:40AM (#10717688)
`data = sys.stdin.readlines()` in their Python script. Is it common to not check return values of functions in Python land? I might be too disciplined coming from a C background, but what if getting the data fails?
Re:Virtualizing APIs with Go and Python by detaro on Friday December 11, 2015 @10:44AM (#10717718)
Then the function throws an exception and the program terminates, since there isn't anything useful it can do about the situation. What would you suggest it to do if it can't read from stdin?