# KSPPythonGetType
Get the type of a `KSP` object implemented in Python. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode KSPPythonGetType(KSP ksp, const char *pyname[])
```
Not collective


## Input Parameter

- ***ksp -*** the linear solver `KSP` context.



## Output Parameter

- ***pyname -*** full dotted Python name [package].module[.{class|function}]





## See Also
 [](chapter_ksp), `KSPCreate()`, `KSPSetType()`, `KSPPYTHON`, `PetscPythonInitialize()`, `KSPPythonSetType()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/impls/python/pythonksp.c.html#KSPPythonGetType">src/ksp/ksp/impls/python/pythonksp.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/impls/python/pythonksp.c)


[Index of all KSP routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
