---
description: Returns an Instructions object for the instructions of the function/modifier.
---

# Callable.instructions()

`instructions() →` [`Instructions`](../instructions)

The function will return all of the instructions directly reachable from the function.

## Example

```python
from glider import *
def query():
  functions = Functions().exec(1)

  instructions = []
  for instruction in functions[0].instructions().exec():
    # Return an array of all instructions for a function
    instructions.append(instruction)

  return instructions
```

## Example output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2F9QTet1qioVdPH0V55e9K%2Fimage.png?alt=media&#x26;token=9f803353-1a65-4b45-8c82-137f50f081ae" alt=""><figcaption></figcaption></figure>
