This fix should be applied to the documentation as well.
On Tue, Mar 6, 2012 at 08:59, larry.hastings <python-check...@python.org> wrote: > http://hg.python.org/cpython/rev/d8f68195210e > changeset: 75448:d8f68195210e > user: Larry Hastings <la...@hastings.org> > date: Mon Mar 05 22:59:13 2012 -0800 > summary: > Fix a comment: PySequence_Fast() creates a list, not a tuple. > > files: > Include/abstract.h | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > > diff --git a/Include/abstract.h b/Include/abstract.h > --- a/Include/abstract.h > +++ b/Include/abstract.h > @@ -1026,7 +1026,7 @@ > > PyAPI_FUNC(PyObject *) PySequence_Fast(PyObject *o, const char* m); > /* > - Returns the sequence, o, as a tuple, unless it's already a > + Returns the sequence, o, as a list, unless it's already a > tuple or list. Use PySequence_Fast_GET_ITEM to access the > members of this list, and PySequence_Fast_GET_SIZE to get its length. > > > -- > Repository URL: http://hg.python.org/cpython > > _______________________________________________ > Python-checkins mailing list > python-check...@python.org > http://mail.python.org/mailman/listinfo/python-checkins > _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com