On Mon, May 3, 2021 at 5:37 AM Stephen J. Turnbull <turnbull.stephen.fw@u.tsukuba.ac.jp> wrote:
 > f'{row!X:>8.3f} | {sum(row):>8.3f}'

hmm -- this is making me think that maybe we should re-enable sum() for strings -- with an optimized path, rather than an TypeError.

I understand the lesson that is supposed to be provided by making that an error, but I'm not sure it really helps anyone really learn anything.

would that be more "intuitive" than "".join() maybe -- the fact that the Error was explicitly added implies that people were trying to do it.

-CHB


--
Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython