loading...

re: Python beyond PEP8 VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thanks I'll make changes to my code. However, I was asking if you have a really long string e.g. my error object, or a regex string. Is there a wa...

Yes, you can do something like....

some_stirng = (
    "Bla bla bla bla. "
    "More bla bla bla bla. "
    "More bla bla bla bla"
)

Or use multi-line strings, but usually they are inconvenient because they will get the spaces from the indentation.

But keep in mind that this is about taste mostly and subjective, so do what ever you feel fits you and your team...

Code of Conduct Report abuse