Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jhayward
on May 5, 2020
|
parent
|
context
|
favorite
| on:
Everything You Didn't Want to Know About Lua's Mul...
The equivalent Python would be:
result, errmsg = do_stuff() if errmsg: error(f"Error in do_stuff: {errmsg}") print(result+5)
Assuming that
errmsg
is 'None' when
do_stuff()
succeeds.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: