# Searching Array of Data Objects

**URL:** <https://discuss.python.org/t/searching-array-of-data-objects/4251>\
**Category:** Python Help\
**Created:** [May 22, 2020, 6:52pm UTC](https://discuss.python.org/t/searching-array-of-data-objects/4251 "2020-05-22T18:52:47Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![gw1500se1](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/gw1500se1/32/2155_2.png) [@gw1500se1](https://discuss.python.org/u/gw1500se1)\
**Post date:** [May 22, 2020, 6:52pm UTC](https://discuss.python.org/t/searching-array-of-data-objects/4251/1 "2020-05-22T18:52:48Z")

</div>

I have a data object defined:

```
@dataclass
class Blower:
    id_: str
    name: str
    off: bool

```

As I create objects I place then into an array:

```
blwr=Blower(<blah blah>)
blowers.append(blwr)

```

Now I want to search ‘blowers’ for an object with a certain ‘id\_’ value. I can’t seem to find how to do that. I’m guessing I need to use some kind of array search, other than rolling my own, but I don’t find one that fits this particular situation. Can someone help? TIA.

---

_[View the full topic](https://discuss.python.org/t/searching-array-of-data-objects/4251)._
