> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/functions/functions.constructors.md).

# Functions.constructors()

`constructors() →` [`Functions`](/glider-ide/api/functions.md)

Adds a filter to get only the constructors.

## Example

```python
from glider import *

def query():
  # Fetch a list of constructors
  functions = Functions().constructors().exec(2)

  return functions
```

## Output

<figure><img src="/files/nISADJohHBfxt41qpSUC" alt=""><figcaption></figcaption></figure>

## Old constructor syntax

The function also accounts for the old constructor syntax, which in the older Solidity versions was named the same as the contract.&#x20;

```python
from glider import *

def query():
  funcs = Functions().constructors().without_name('constructor').exec(2)
  return funcs
```

Output

<figure><img src="/files/9CxkPJrj0k2NpF1T487E" alt=""><figcaption></figcaption></figure>
