-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
del
doesn't delete object and x = None
doesn't create None
object
#1138
Comments
The part about assigning to
|
…globals(). Fixes microsoft#1142 Fixes microsoft#1138
I've just provided a PR for this. So, it works in the case given, but still, it has caveats in that it's not possible to The example below shows what I mean:
|
Before creating a new issue, please check the FAQ to see if your question is answered there.
Environment data
import debugpy; print(debugpy.__version__)
if uncertain)Actual behavior
In Debug Console
del x
is ignored.x = None
doesn't create an object.Expected behavior
del x
should delete the object.x = None
should create an object withNone
value.Steps to reproduce:
launch.json
. The scriptx=5
print(x)
. This shows5
del x
.print(x)
. This still shows5
. Even afterimport gc; gc.collect()
,x
still exists.None
value.y = None
print(y)
. This produces the errorNone
, e.g.x = None
, then the variable is still defined.The text was updated successfully, but these errors were encountered: