]> granicus.if.org Git - python/commit
Add special case to PySequence_List() so that list() of a list is
authorGuido van Rossum <guido@python.org>
Fri, 10 Jul 1998 18:03:50 +0000 (18:03 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 10 Jul 1998 18:03:50 +0000 (18:03 +0000)
commit5dba9e8aef544c0f10bda0ecbd965ac08d019f27
tree3c8346d86b20b5e7b4cc62c965df9741635d7377
parentfa4ac71dd6602347d80e4cdb71f3867fb63d3578
Add special case to PySequence_List() so that list() of a list is
faster (using PyList_GetSlice()).  Also added a test for a NULL
argument, as with PySequence_Tuple().  (Hmm...  Better names for these
two would be PyList_FromSequence() and PyTuple_FromSequence().  Oh well.)
Objects/abstract.c