[Python-Dev] list.extend

David Abrahams David Abrahams" <david.abrahams@rcn.com
Fri, 28 Jun 2002 02:05:22 -0400

From: "Tim Peters" <tim.one@comcast.net>

> Increasing accuracy isn't necessarily helpful.  In any context where
> PyInt_AsLong is called, an int most certainly is required *in the end*.
> Spelling out that the implementation may satisfy this requirement by
> a non-int type whether it knows how to convert instances of itself to an
> doesn't seem helpful to me as a user.  I'm not thinking that much about
> internal implementation, and "of course" if an int is required Python
> accept an object of a type that knows how to convert itself to an int.

OK. Explicit is better than implicit, except when it's obvious what GvR
really meant ;-)

> But I suppose you don't like seeing
>     SyntaxError: invalid syntax
> at the end of a 7-line statement either <wink>.

I never like seeing that, but I don't know what you're getting at.

maybe-you-need-to-<wink>-harder-ly y'rs,