#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

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks