[Python-ideas] strings as iterables - from str.startswith taking any iterator instead of just tuple

Joshua Landau joshua at landau.ws
Fri Jan 3 15:17:19 CET 2014


On 3 January 2014 12:12, Masklinn <masklinn at masklinn.net> wrote:
> On 2014-01-03, at 12:41 , Nick Coghlan <ncoghlan at gmail.com> wrote:
> I’ve used some sort of ad-hoc version of it enough that I think it’s
> a good idea, although I’d suggest “scalar”: “atomic” also
> exists (with very different semantics) in concurrency contexts, whereas
> I believe scalar always means single-value (non-compound) data type.

OTOH, to many non-mathematical people I hardly expect "is this scalar"
to feel nearly as meaningful a question as "is this atomic".

To bike-shed, how about "unitary".

Nevertheless, I like the idea and the problem is a real one.


More information about the Python-ideas mailing list