commit | 5dba9e8aef544c0f10bda0ecbd965ac08d019f27 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Jul 10 18:03:50 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Jul 10 18:03:50 1998 +0000 |
tree | 3c8346d86b20b5e7b4cc62c965df9741635d7377 | |
parent | fa4ac71dd6602347d80e4cdb71f3867fb63d3578 [diff] |
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.)