contains method
Leave feedback
On this page
Determines whether the AliasDictionary contains the specified alias.
def contains(self, alias):
...
| Parameter | Type | Description |
|---|---|---|
| alias | str |
The alias to locate in the AliasDictionary. |
Returns: bool: True if the AliasDictionary contains the specified alias; otherwise, False.
| Raises | Description |
|---|---|
ValueError |
When alias is None. |
if aliases.contains("e"):
replacement = aliases.get_text("e")
These names call contains too, limited to the overloads listed.
| Alias | Accepts |
|---|---|
contains_file |
contains_file(alias) |
contains_string |
contains_string(alias) |
- class
AliasDictionary
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.