Return a tuple of locals in the function.
(self)
| 198 | return self.__params |
| 199 | |
| 200 | def get_locals(self): |
| 201 | """Return a tuple of locals in the function. |
| 202 | """ |
| 203 | if self.__locals is None: |
| 204 | locs = (LOCAL, CELL) |
| 205 | test = lambda x: _get_scope(x) in locs |
| 206 | self.__locals = self.__idents_matching(test) |
| 207 | return self.__locals |
| 208 | |
| 209 | def get_globals(self): |
| 210 | """Return a tuple of globals in the function. |