Aug-29-2019, 12:49 AM
i'm building a string from pieces being appended. this does not fit into formatting or f-strings because they are maybe added according to an if conditional, repeated in a loop, and/or modified by function calls. i have been using a lot of
+=
operators to do this. now i am wondering if it might be be better to .append()
these strings to a list and ''.join()
them all together at the end. a typical run in my current project will involve a few million +=
operations.