You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"with" blocks when using "as" should not pollute locals() on exit, the "as" keyword should be considered as the const() keyword from MicroPython, and not assignable in the scope.
ideally :
with something as temp1, another as temp2:
pass
should be executed as :
with something as temp, another as temp2:
temp1 = something # <= should raise an error like temp1 would as a const(something)
# should raise a warning of a potential conflict with a gc optimized context ( maybe decorator on `__exit__` ? )
x = temp2
del temp1, temp2; gc.collect()
That's a bit that except: blocks are doing on cpython ( even if they should not do it exactly as they do actually (3.8) )
The text was updated successfully, but these errors were encountered:
"with" blocks when using "as" should not pollute locals() on exit, the "as" keyword should be considered as the const() keyword from MicroPython, and not assignable in the scope.
ideally :
should be executed as :
That's a bit that except: blocks are doing on cpython ( even if they should not do it exactly as they do actually (3.8) )
The text was updated successfully, but these errors were encountered: