join()
echuck3 at my-deja.com
echuck3 at my-deja.com
Fri Oct 6 20:40:28 EDT 2000
In article <39DD9A9A.7130 at hvision.nl>,
ivnowa at hvision.nl wrote:
> echuck at mindspring.com wrote:
>
> >
> > In Python 2.0, I was surprised to see join() had become a method of
> > string. I "naturally" expected it to be a method of list.
> [...]
> > list.join(string)
>
> The problem is that string.join does not work on a list... it works
on a
> *sequence*. These are all valid:
Ah, I see your point. That brings me to my next suggestion: That types
can inherit from each other and that we make an abstract Sequence type
from which List, Tuple and possibly String all inherit from.
> I agree that something like list.join would have been more intuitive,
> though. This is not the only step away from being intuitive that
Python
> has taken lately.
What other things in Python have become non-intuitive in your opinion?
-Chuck
--
http://webware.sourceforge.net
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list