[Python-checkins] cpython: Fix a comment: PySequence_Fast() creates a list, not a tuple.
larry.hastings
python-checkins at python.org
Tue Mar 6 07:59:20 CET 2012
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: 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
More information about the Python-checkins
mailing list