Ticket #9828: 5_random_typing.patch

File 5_random_typing.patch, 1.7 KB (added by robertwb, 12 years ago)
  • sage/misc/bitset.pxi

    # 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  
    669669    Return a python string representing the bitset.
    670670    """
    671671    cdef char* s = bitset_chars(NULL, bits)
     672    cdef object py_s
    672673    py_s = s
    673674    sage_free(s)
    674675    return py_s
  • sage/rings/polynomial/multi_polynomial_libsingular.pyx

    diff -r 362315e467ac -r ebf433b6cf5e sage/rings/polynomial/multi_polynomial_libsingular.pyx
    a b  
    27612761        _p = p_Head(self._poly, _ring)
    27622762        _n = p_GetCoeff(_p, _ring)
    27632763
    2764         ret = (not self._poly.next) and n_IsOne(_n, _ring)
     2764        ret = bool((not self._poly.next) and n_IsOne(_n, _ring))
    27652765
    27662766        p_Delete(&_p, _ring)
    27672767        return ret
  • sage/rings/polynomial/pbori.pyx

    diff -r 362315e467ac -r ebf433b6cf5e sage/rings/polynomial/pbori.pyx
    a b  
    62026202        elif name is 'extended_product_criterions':
    62036203            return self._strat.extendedProductCriterions
    62046204        elif name is 'matrix_prefix':
    6205             _tmp =  <char *>self._strat.matrixPrefix.c_str()
    6206             return _tmp
     6205            return self._strat.matrixPrefix.c_str()
    62076206
    62086207        raise AttributeError, name
    62096208