GContext
Bases: object
object
new
Return context manager object, new level down current context
Usage:
my_context.a = 0 with my_context.new(a=1) as ctx: ctx.b = 2 assert my_context.a == 1 assert my_context.b == 2 assert my_context.a == 0
pop
push