list Integer indexing dies??

Mike Meyer mwm at mired.org
Fri Dec 24 06:44:50 EST 2004


Ishwor <ishwor.gurung at gmail.com> writes:

> On 23 Dec 2004 14:28:37 GMT, Antoon Pardon <apardon at forel.vub.ac.be> wrote:
> My experience as a learner here is that there should be some
> automagics & say like "okay you want to do indexing on integers (
> context dependent); i'll give you the index of 0th position in that
> integer" ???

Python doesn't do things automagically. The rules for pythonic
behavior include "Explicit is better than implicit" and "In the face
of ambiguity, refuse the tempation to guess." Both of those are
violated by automatic conversions and the like.

         <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list