# TaoPythonGetType
Get the type of a Tao object implemented in Python. 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoPythonGetType(Tao tao, const char *pyname[])
```
Not collective


## Input Parameter

- ***tao -*** the optimation solver (Tao) context.



## Output Parameter

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





## See Also
 `TaoCreate()`, `TaoSetType()`, `TaoPYTHON`, `PetscPythonInitialize()`, `TaoPythonSetType()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/python/pythontao.c.html#TaoPythonGetType">src/tao/python/pythontao.c</A>


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


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