Menu

#565 Python code style for line continuation should let choose wh

open
nobody
None
5
2012-02-07
2012-02-07
No

In Python, it is possible to continue a line with '\'
{code:lang=python}
print('this is' \ + 'a long line')
{code}

When Pydev code style is applied, spaces before '\' are added

{code:lang=python}
print('this is'\ + 'a long line')
{code}

I suppose this is a matter of test, but I really need an option in the Settings for putting or not a space before '\'.

The reason is that Pycharm code format removes spaces before '\', and this two different code styles are a nightmare in term source control management.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.