/usr/share/pyshared/sympy/utilities/cythonutils.py is in python-sympy 0.7.1.rc1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | """Helper module for cooperation with Cython. """
from sympy.external import import_module
cython = import_module('cython')
if cython:
def cythonized(specs):
arg_types = {}
for spec in specs.split(','):
arg_types[spec] = cython.int
return cython.locals(**arg_types)
else:
def cythonized(specs):
return lambda f: f
|