# get\_locked\_list

Generates a list of the [MaciDataObj's](https://docs.macilib.org/docs/maci/object) currently locked attribute names, and returns a list. This method currently has no parameters.

Useful if it is desired to view or reference all currently locked attribute names.

{% hint style="info" %}
data.get\_locked\_list()  ->  list\[str]
{% endhint %}

\
*Basic Example of getting a list of the currently locked attribute names of the* [*MaciDataObj*](https://docs.macilib.org/docs/maci/object)

```python
list_data = data.get_locked_list()
```

In this example, we simply use the get\_locked\_list method on the [MaciDataObj](https://docs.macilib.org/docs/maci/object) to get a generated copy of the currently locked attribute names, currently held inside the maci object, as a list of strings, and assign the returned list data to a variable.

### partner methods

Methods that provide related utility to this method

[lock\_attr](https://docs.macilib.org/docs/maci/object/methods/lock_attr)  ->  Lock an attribute name\
[unlock\_attr](https://docs.macilib.org/docs/maci/object/methods/unlock_attr)  ->  Unlock an attribute name<br>
