Return the complete context as dict including the exported variables. For optimizations reasons this might not return an actual copy so be careful with using it.
(self)
| 221 | return dict((k, self.vars[k]) for k in self.exported_vars) |
| 222 | |
| 223 | def get_all(self): |
| 224 | """Return the complete context as dict including the exported |
| 225 | variables. For optimizations reasons this might not return an |
| 226 | actual copy so be careful with using it. |
| 227 | """ |
| 228 | if not self.vars: |
| 229 | return self.parent |
| 230 | if not self.parent: |
| 231 | return self.vars |
| 232 | return dict(self.parent, **self.vars) |
| 233 | |
| 234 | @internalcode |
| 235 | def call(__self, __obj, *args, **kwargs): |
no outgoing calls
no test coverage detected