Return a soft frame. A soft frame may not be modified as standalone thing as it shares the resources with the frame it was created of, but it's not a rootlevel frame any longer. This is only used to implement if-statements.
(self)
| 176 | return Frame(self.eval_ctx, self) |
| 177 | |
| 178 | def soft(self): |
| 179 | """Return a soft frame. A soft frame may not be modified as |
| 180 | standalone thing as it shares the resources with the frame it |
| 181 | was created of, but it's not a rootlevel frame any longer. |
| 182 | |
| 183 | This is only used to implement if-statements. |
| 184 | """ |
| 185 | rv = self.copy() |
| 186 | rv.rootlevel = False |
| 187 | return rv |
| 188 | |
| 189 | __copy__ = copy |
| 190 |