Thought on PEP 204 and 276
Steve Holden
sholden at holdenweb.com
Tue Jun 4 10:49:19 EDT 2002
"phil hunt" <philh at comuno.freeserve.co.uk> wrote in message
news:slrnaf7mo4.dfe.philh at comuno.freeserve.co.uk...
> On Tue, 28 May 2002 16:00:12 +0200, holger krekel <pyth at devel.trillke.net>
wrote:
> >
> >that was precisely my argument on the python-dev list but
> >it got rejected by GvR personally ... "Trust me. Don't go there."
> >
> >I realize that mapping types and sequence types are quite different
> >despite appearances. It may not be a good idea to blur the lines
> >between these two too much.
>
> I think they are essentially the same. A sequence tpye is just a
> mapping type where the keys are restricted to the integers from
> 0 to however many elements there are minus 1.
>
No matter what you think, they are essentially different. Insertion into a
mapping doesn't alter the key to which other elements are mapped, but
insertion into a sequence (potentially) does that.
[ ... ]
regards
-----------------------------------------------------------------------
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------
More information about the Python-list
mailing list