| 35 | }; |
| 36 | |
| 37 | inline scope::scope(object const& new_scope) |
| 38 | : object(new_scope) |
| 39 | , m_previous_scope(detail::current_scope) |
| 40 | { |
| 41 | detail::current_scope = python::incref(new_scope.ptr()); |
| 42 | } |
| 43 | |
| 44 | inline scope::scope() |
| 45 | : object(detail::borrowed_reference( |