Missing the functional mind set

Steve Williams stevewilliams at wwc.com
Sun Mar 4 14:35:43 EST 2001


Magnus Lie Hetland wrote:

> "Kirby Urner" <urner at alumni.princeton.edu> wrote in message
> news:ntg2atcemm3hp9rb26hn7c5uin4dfn8lc9 at 4ax.com...
> > Daniel Klein <danielk at aracnet.com> wrote:
> [snip]
> >   >>> params = [None]*3 # list
>
> This should be
>
>     >>> params = [None]*4

[snip]

To be consistent with the "index == offset" mindset, counting should
start at zero.

As in:  "I have 2 children--0 boy and 1 girls".





More information about the Python-list mailing list