# HG changeset patch
# User Craig Citro <craigcitro@gmail.com>
# Date 1278490141 25200
# Node ID ebf433b6cf5ecdb56040834e13f038e1f6e1aecf
# Parent 362315e467acf436c3c081efbf77e4cd7c57d617
Small type fixes.
diff -r 362315e467ac -r ebf433b6cf5e sage/misc/bitset.pxi
a
|
b
|
|
669 | 669 | Return a python string representing the bitset. |
670 | 670 | """ |
671 | 671 | cdef char* s = bitset_chars(NULL, bits) |
| 672 | cdef object py_s |
672 | 673 | py_s = s |
673 | 674 | sage_free(s) |
674 | 675 | return py_s |
diff -r 362315e467ac -r ebf433b6cf5e sage/rings/polynomial/multi_polynomial_libsingular.pyx
a
|
b
|
|
2761 | 2761 | _p = p_Head(self._poly, _ring) |
2762 | 2762 | _n = p_GetCoeff(_p, _ring) |
2763 | 2763 | |
2764 | | ret = (not self._poly.next) and n_IsOne(_n, _ring) |
| 2764 | ret = bool((not self._poly.next) and n_IsOne(_n, _ring)) |
2765 | 2765 | |
2766 | 2766 | p_Delete(&_p, _ring) |
2767 | 2767 | return ret |
diff -r 362315e467ac -r ebf433b6cf5e sage/rings/polynomial/pbori.pyx
a
|
b
|
|
6202 | 6202 | elif name is 'extended_product_criterions': |
6203 | 6203 | return self._strat.extendedProductCriterions |
6204 | 6204 | elif name is 'matrix_prefix': |
6205 | | _tmp = <char *>self._strat.matrixPrefix.c_str() |
6206 | | return _tmp |
| 6205 | return self._strat.matrixPrefix.c_str() |
6207 | 6206 | |
6208 | 6207 | raise AttributeError, name |
6209 | 6208 | |