Remove deprecated sympy.printing.ccode, sympy.printing.fcode, and sympy.printing.cxxcode modules #20256
Labels
Deprecation Removal
Tracks the removal of a deprecated feature. See github.com/sympy/sympy/wiki/Deprecating-policy
printing
The submodules
sympy.printing.ccode
,sympy.printing.fcode
, andsympy.printing.cxxcode
were renamed tosympy.printing.c
,sympy.printing.fortran
, andsympy.printing.cxx
, respectively. These modules were renamed because they conflict with the corresponding function names. This causes issues becausefrom sympy.printing import ccode
can give the function or the module, depending on whether theccode
submodule has been imported yet or not. See #20234 (comment) for a technical discussion on why this happens.The old module names were kept intact because some public names in them are only accessible from the submodule, such as the
C99CodePrinter
class. Code that uses these should rename any imports usingsympy.printing.ccode
tosympy.printing.c
, and so on.This deprecation was added in SymPy 1.7.
See #20250, #20234, and #19908.
The text was updated successfully, but these errors were encountered: