From 5871cbe8d3100f17dbe9642bbd7b417b60ca38f0 Mon Sep 17 00:00:00 2001 From: Victor Chahuneau Date: Sun, 2 Jun 2013 14:55:53 -0400 Subject: Possible fix for #13 - use IntList .len instead of len() which can return long - a bit of code cleanup - upgrade to Cython 0.19 --- python/src/_cdec.pyx | 1 - 1 file changed, 1 deletion(-) (limited to 'python/src/_cdec.pyx') diff --git a/python/src/_cdec.pyx b/python/src/_cdec.pyx index 71e083e4..47d0c739 100644 --- a/python/src/_cdec.pyx +++ b/python/src/_cdec.pyx @@ -72,7 +72,6 @@ cdef class Decoder: if isinstance(weights, DenseVector): self.weights.vector[0] = ( weights).vector[0] elif isinstance(weights, SparseVector): - self.weights.vector.clear() (( weights).vector[0]).init_vector(self.weights.vector) elif isinstance(weights, dict): self.weights.vector.clear() -- cgit v1.2.3