On Mon, May 3, 2021 at 5:37 AM Stephen J. Turnbull <
turnbull.stephen...@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
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/7O7O3FORDT2QSL2T5W7BUFWA6R6ACVXE/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to