commit | 2801fe1c8f7d629e396ed514c4df25b43547970a | [log] [tgz] |
---|---|---|
author | Michael W. Hudson <mwh@python.net> | Tue Nov 05 18:05:49 2002 +0000 |
committer | Michael W. Hudson <mwh@python.net> | Tue Nov 05 18:05:49 2002 +0000 |
tree | 04a2d2e97ad200620866a5dfb3fa1ed12bd5afb8 | |
parent | 18c7d98bd1d6611018bb2417d4207eed0482e6e9 [diff] [blame] |
Use PyList_CheckExact and PyTuple_CheckExact for checking whether PySequence_Fast needs to do anything siginificant.
diff --git a/Objects/abstract.c b/Objects/abstract.c index 9940fd3..4f8dd3e 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c
@@ -1436,7 +1436,7 @@ if (v == NULL) return null_error(); - if (PyList_Check(v) || PyTuple_Check(v)) { + if (PyList_CheckExact(v) || PyTuple_CheckExact(v)) { Py_INCREF(v); return v; }