This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author petri.lehtinen
Recipients Carl.Friedrich.Bolz, alex, amaury.forgeotdarc, mark.dickinson, petri.lehtinen, python-dev, rhettinger
Date 2011-11-06.11:46:58
SpamBayes Score 0.0003765873
Marked as misclassified No
Message-id <1320580019.2.0.614660575638.issue13340@psf.upfronthosting.co.za>
In-reply-to
Content
> Or am I misunderstanding?

Ah, no, sorry. I wasn't aware of this.

Now the error message set by _PyEval_SliceIndex() makes sense. It doesn't itself accept None, but apply_slice() and assign_slice() handle the None case.

There's still the question whether {list,tuple}.index() should accept None or not.
History
Date User Action Args
2011-11-06 11:46:59petri.lehtinensetrecipients: + petri.lehtinen, rhettinger, amaury.forgeotdarc, mark.dickinson, Carl.Friedrich.Bolz, alex, python-dev
2011-11-06 11:46:59petri.lehtinensetmessageid: <1320580019.2.0.614660575638.issue13340@psf.upfronthosting.co.za>
2011-11-06 11:46:58petri.lehtinenlinkissue13340 messages
2011-11-06 11:46:58petri.lehtinencreate