urequests and r.close()
-
The text book says
n=1; m=ndoesn't create a new object for m it just references the same object that n is referencing.
When I do
r=urequests.get('https://someurl'); val=r.text; r.close(); return valwhy does val still retain it's value when r.close() destroys the urequests return object? I came up with the above because
r=urequests.get('https://someurl'); r.close(); return r.textcaused OSErrors from urequests. But now I'm wondering why it works?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login