# How to check type of PyRow

**URL:** <https://forum.inductiveautomation.com/t/how-to-check-type-of-pyrow/89864>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 2, 2024, 10:48pm UTC](https://forum.inductiveautomation.com/t/how-to-check-type-of-pyrow/89864 "2024-05-02T22:48:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 2, 2024, 10:52pm UTC](https://forum.inductiveautomation.com/t/how-to-check-type-of-pyrow/89864/2 "2024-05-02T22:52:41Z")

</div>

```python
... import PyDataset
if type(myParam) is DatasetUtilities.PyDataSet.PyRow:

```

Should be:

```python
... import PyDataset
if type(myParam) is PyDataSet.PyRow:

```

Though I'd argue this is a bit of an antipattern - you should probably check if it's explicitly a string first, then check it's iterable in any form, and then bail if you can't handle it, to be more "Pythonic".

Or you could import and use `com.inductiveautomation.ignition.common.PyUtilities.isSequence` - which will return `True` for sequence-like things but _not_ Python strings.

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-check-type-of-pyrow/89864)._
