[Python-checkins] python/dist/src/Objects listobject.c,2.153,2.154

Guido van Rossum guido@python.org
Tue, 17 Jun 2003 10:10:57 -0400


> This seems like a pretty significant change to Python's API (or at least
> one of its more common built-ins).  Given that Python 2.3 is in beta,
> I'm wondering how wise it is to add this feature.  I'm sure I missed the
> python-dev debate about it <wink>.

Actually, I +1'ed it on the grounds that (a) str.index() does it the
same way, and (b) it's backwards compatible.

> > Objects/listobject.c:1837: undefined reference to `max'
> > Objects/listobject.c:1838: undefined reference to `min'
> > Objects/listobject.c:1838: undefined reference to `max'

However, the implementation leaves something to desire... :-(

--Guido van Rossum (home page: http://www.python.org/~guido/)