Guido van Rossum wrote: > I chose len(x) over x.len() for HCI reasons > > (a) For some operations, prefix notation just reads better than > postfix > (b) When I read code that says len(x) I *know* that it is asking for > the length of something.
Just as a matter of interest, how far do you think these principles apply or don't apply to more recent things like iter.next() that don't follow this pattern? -- Greg _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com