[Python-checkins] cpython (merge 3.1 -> 3.2): Merge 3.1 (original) (raw)

kristjan.jonsson python-checkins at python.org
Wed Mar 30 13:56:44 CEST 2011


http://hg.python.org/cpython/rev/50e9d4515ea2 changeset: 69063:50e9d4515ea2 branch: 3.2 parent: 69031:57e99f5f5e8f parent: 69062:9a6da9bc257d user: Kristjan Valur Jonsson <sweskman at gmail.com> date: Wed Mar 30 11:24:58 2011 +0000 summary: Merge 3.1

files: Lib/test/test_itertools.py | 5 +++++ Modules/itertoolsmodule.c | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py --- a/Lib/test/test_itertools.py +++ b/Lib/test/test_itertools.py @@ -357,6 +357,8 @@ list(range(maxsize-5, maxsize+5))) self.assertEqual(list(islice(count(-maxsize-5), 10)), list(range(-maxsize-5, -maxsize+5)))

@@ -379,6 +381,9 @@ self.assertEqual(next(copy.deepcopy(c)), value) self.assertEqual(next(pickle.loads(pickle.dumps(c))), value)

diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -3050,6 +3050,7 @@ Py_ssize_t cnt = 0; PyObject *long_cnt = NULL; PyObject *long_step = NULL;

@@ -3087,9 +3088,11 @@ assert(long_cnt != NULL && long_step != NULL);

 /* Fast mode only works when the step is 1 */

-- Repository URL: http://hg.python.org/cpython



More information about the Python-checkins mailing list