Re: 2.2.2 Annoyance
From: Michael Hudson (mwh_at_python.net)
Date: 11/26/03
- Next message: Amaury Forgeot d'Arc: "Re: Newbi q: show prog"
- Previous message: Lukasz Pankowski: "Re: Python docs in Info format?"
- In reply to: Miklós: "Re: 2.2.2 Annoyance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 26 Nov 2003 12:06:51 GMT
"Miklós" <nospam@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:
>>> [].__getitem__
so
>>> [].__getitem__(slice(0,1))
was right out! It's all a bit messy, and it's sorted out in 2.3.
Cheers,
mwh
--
Monte Carlo sampling is no way to understand code.
-- Gordon McMillan, comp.lang.python
- Next message: Amaury Forgeot d'Arc: "Re: Newbi q: show prog"
- Previous message: Lukasz Pankowski: "Re: Python docs in Info format?"
- In reply to: Miklós: "Re: 2.2.2 Annoyance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|