Do you have a reference for what you are saying? This method of line continuation is recommended is PEP-008, without any caveats about performance.

I thought that Python automatically ignores line breaks if it is waiting for a closing bracket of any kind. So it concatenates the lines, then parses it, without any effect on the code that is created.

In any case, (x) doesn't create a tuple, it is just x enclosed in redundant parentheses. You need to use (x,) to create a one element tuple.

Software developer. Java, Python, C++ etc. I write for pythoninformer.com and maintain the generativepy library.

Software developer. Java, Python, C++ etc. I write for pythoninformer.com and maintain the generativepy library.