Skip to main content
Code Review

Return to Answer

replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Source Link

Looking how to avoid duplication error I missed how simpler nhgrif's solution solution is. Eventually I used the following method that accepts any number of arguments and prints them before exiting.

def fatal_error(*messages):
 for m in messages:
 log.error(m)
 app_exit(1)

Looking how to avoid duplication error I missed how simpler nhgrif's solution is. Eventually I used the following method that accepts any number of arguments and prints them before exiting.

def fatal_error(*messages):
 for m in messages:
 log.error(m)
 app_exit(1)

Looking how to avoid duplication error I missed how simpler nhgrif's solution is. Eventually I used the following method that accepts any number of arguments and prints them before exiting.

def fatal_error(*messages):
 for m in messages:
 log.error(m)
 app_exit(1)
Source Link

Looking how to avoid duplication error I missed how simpler nhgrif's solution is. Eventually I used the following method that accepts any number of arguments and prints them before exiting.

def fatal_error(*messages):
 for m in messages:
 log.error(m)
 app_exit(1)
lang-py

AltStyle によって変換されたページ (->オリジナル) /