... | ... | @@ -58,6 +58,7 @@ Python has number of advantages of shell: |
|
|
- ISC QA has good, multi-year experience with Forge tool that's written in Python. Stork has system tests written in Python, too.
|
|
|
- python does not suffer from the portability problems as much (see bash vs dash vs sh vs tsch vs zsh differences)
|
|
|
- python is inherently more efficient in some cases. There is long term plan to provide hooks in python. Shell based hooks are technically possible now, but are way less efficient, due to having to spawn multiple separate processes for each packet.
|
|
|
- when python code fails, the default exception handling is very informative. In shell, you need to write extra code to get the basics, like exit code. Getting more descriptive text of what failed and why is often impossible. This give users a better chance to fix something on their own
|
|
|
|
|
|
# Python Style
|
|
|
|
... | ... | |