cpython: 5accb0ac8bfb (original) (raw)

Mercurial > cpython

changeset 84116:5accb0ac8bfb 2.7

Fix comment blocks. Adjust blocksize to a power-of-two for better divmod computations.

Raymond Hettinger python@rcn.com
date Fri, 14 Jun 2013 01:06:33 -0400
parents ca8e86711403
children aff0bdab358e
files Lib/test/test_deque.py Modules/_collectionsmodule.c
diffstat 2 files changed, 8 insertions(+), 12 deletions(-)[+] [-] Lib/test/test_deque.py 2 Modules/_collectionsmodule.c 18

line wrap: on

line diff

--- a/Lib/test/test_deque.py +++ b/Lib/test/test_deque.py @@ -522,7 +522,7 @@ class TestBasic(unittest.TestCase): @test_support.cpython_only def test_sizeof(self):

--- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -8,12 +8,13 @@ / / The block length may be set to any number over 1. Larger numbers

#define CENTER ((BLOCKLEN - 1) / 2) /* A dequeobject is composed of a doubly-linked list of block nodes. @@ -58,13 +59,8 @@ static block *freeblocks[MAXFREEBLOCKS]; static block * newblock(block *leftlink, block *rightlink, Py_ssize_t len) { block *b;