From 3a754038809a6cc89e7ee24c0b8293f4fe933153 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 12 Nov 2015 07:18:45 -0800 Subject: [PATCH] Deque uses "len" instead of varhead in Py2.7 --- Modules/_collectionsmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index c5690ef09ef..b41c5def4a7 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -651,7 +651,7 @@ deque_clear(dequeobject *deque) Py_ssize_t n; PyObject *item; - if (Py_SIZE(deque) == 0) + if (deque->len == 0) return; /* During the process of clearing a deque, decrefs can cause the