python (3)
in_std_library¶
in_std_library(fn: 'str | Callable[..., Any]') -> 'bool'
Return true when given fn / string is part of the std library.
DocStrings
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fn
|
str | Callable[..., Any]
|
(Name of) function to check |
required |
Source code in src/jinjarope/envtests.py
145 146 147 148 149 150 151 152 |
|
python_builtin¶
python_builtin(fn: 'str | Callable[..., Any]') -> 'bool'
Return true when given fn / string represents a python builtin.
DocStrings
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fn
|
str | Callable[..., Any]
|
(Name of) function to check |
required |
Source code in src/jinjarope/envtests.py
136 137 138 139 140 141 142 |
|
python_keyword¶
python_keyword(string: str) -> bool
Return true when given string represents a python keyword.
DocStrings
Parameters:
Name | Type | Description | Default |
---|---|---|---|
string
|
str
|
The string to check |
required |
Source code in src/jinjarope/envtests.py
125 126 127 128 129 130 131 132 133 |
|