String joining design - Page 3 - Python Discussions
Jan 2, 2023 ... You're joining strings with strings, using a string separator. Why are you surprised its a string method? It certainly shouldn't be just a list ...
Jan 2, 2023 ... You're joining strings with strings, using a string separator. Why are you surprised its a string method? It certainly shouldn't be just a list ...
Dec 31, 2021 ... operators for performing arithmetic computations and string concatenation ... first Python command (or function, operator, statement ...
We even had join in the string module that took this syntax, but that went away with Python 3. On the consistency front, it’s also fun that str.join takes an iterable, but os.path.join uses unpacking so it doesn’t.
Discussions on Python.org. String concatenation with a for loop.The later function creates a new bigger string reducing drastically the performance of the string appending loop in the provided code. This appears to be related to the issue #89799 .
Discussions on Python.org. `str.join(str(i) for i in value)` for `f-strings`. Ideas. nikdissv-Forever (Nikita Denissov). January 26, 2023, 5:22am 1.
many people classify the programming languages python and java differently for these two terms. often java is classed as compiled but not interpreted and python as interpreted but not compiled. for me, this seems to require splitting hairs quite finely...