In python, it usually has vertically oriented lists of strings. For instance:
subprocess.check_output( [ 'application', '-first-flag', '-second-flag', '-some-additional-flag' ] )
It looks good, readable, does not break the rule of 80 columns ... But if the comma is omitted, like this:
subprocess.check_output( [ 'application', '-first-flag'
Python will still consider this code valid by combining two bites :( Is there any way to protect myself from such typos while maintaining vertically oriented string lists and without bloating the code (for example, wrapping each element inside str() )?
source share