[Python-Dev] [Python-checkins] cpython: Fix a comment: PySequence_Fast() creates a list, not a tuple. (original) (raw)

Eli Bendersky eliben at gmail.com
Tue Mar 6 08:03:45 CET 2012


This fix should be applied to the documentation as well.

On Tue, Mar 6, 2012 at 08:59, larry.hastings <python-checkins at python.org> wrote:

http://hg.python.org/cpython/rev/d8f68195210e changeset:   75448:d8f68195210e user:        Larry Hastings <larry at hastings.org> date:        Mon Mar 05 22:59:13 2012 -0800 summary:  Fix a comment: PySequenceFast() 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 @@  PyAPIFUNC(PyObject *) PySequenceFast(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 PySequenceFastGETITEM to access the  members of this list, and PySequenceFastGETSIZE to get its length. -- Repository URL: http://hg.python.org/cpython


Python-checkins mailing list Python-checkins at python.org http://mail.python.org/mailman/listinfo/python-checkins



More information about the Python-Dev mailing list