# PCPythonGetType
Get the type of a `PC` object implemented in Python, a `PCPYTHON`. 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCPythonGetType(PC pc, const char *pyname[])
```
Not collective


## Input Parameter

- ***pc -*** the preconditioner (`PC`) context.



## Output Parameter

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





## See Also
 `PC`, `PCSHELL`, `PCCreate()`, `PCSetType()`, `PCPYTHON`, `PetscPythonInitialize()`, `PCPythonSetType()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/python/pythonpc.c.html#PCPythonGetType">src/ksp/pc/impls/python/pythonpc.c</A>


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


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