/usr/share/swig/3.0.12/python
Edit: /usr/share/swig/3.0.12/python/std_complex.i (469B)
/*
* STD C++ complex typemaps
*/
%include
%{
#include
%}
/* defining the complex as/from converters */
%swig_cplxdbl_convn(std::complex, std::complex, std::real, std::imag)
%swig_cplxflt_convn(std::complex, std::complex, std::real, std::imag)
/* defining the typemaps */
%typemaps_primitive(%checkcode(CPLXDBL), std::complex);
%typemaps_primitive(%checkcode(CPLXFLT), std::complex);