mwh at python.net
Wed Nov 26 13:06:51 CET 2003
"Miklós" <nospam at nowhere.hu> writes:
> I understand the rationale for deprecating '__getslice__' from v2.0
> onwards was to make sequences and mappings to look more alike. But
> then this change for __getitem__ should have been absolutely
> introduced at that time or the semantics of CPython between 2.0 and
> 2.2 doesn't make sense in this respect... Am I right in that?
Well, sort of. Back in the 2.0 days you couldn't even write:
was right out! It's all a bit messy, and it's sorted out in 2.3.
Monte Carlo sampling is no way to understand code.
-- Gordon McMillan, comp.lang.python
More information about the Python-list