While I'm sitting here purging implictly concatena...
# random
b
While I'm sitting here purging implictly concatenated strings using
softwrap
. I'm reminded that Guido himself considered (at one point) implicit string literal concatenation to be considered harmful Also interesting article: https://blog.devgenius.io/5-of-666-python-repos-had-comma-typos-including-tensorflow-and-pytorch-sentry-and-v8-7bc3ad9a1bb7
h
@bitter-ability-32190 you hath converted me to no longer like implicit string concatenation. What was missing was something like your soft wrap
Seeing all of the missing spaces in these soft wrap PR's is what did it for me
b
🏆
h
Would you consider proposing your function to the standard library?
b
🙈 That is an uphill climb, for sure. Maybe a younger Josh would
h
PEP 782413
b
Also FWIW I prefer explicit concat with
+
(which also gets `black`'s formatting a bit better) I also prefer leading spaces because it's more obvious:
Copy code
"Line 1"
" Line 2"
" Line 3"
# vs
"Line 1 "
"Line 2"
"Line 3"
h
In all seriousness, I have seen several times that core maintainers will Shepherd the change for you. It might be worth opening a github issue to see if they have any interest? If so maybe a maintainer would help you with the process
You prefer that over soft wrap?
b
oh god no. Just in other non-Pants places 🙂
The Pants code is slightly tailored to Pants' usecase. Especially the tabbing bit.
👍 1
p
b
I dream a dream we can turn on NIC#02