x = 3 def prt(): print(x) prt()
It's when you assign that you need P3's global etc. annotations, and you can't assign in lambdas.