+ 1
'Memory limit exceeded' error when trying to import urllib
Does Code Playground allow to use Python's urllib module and get data from the web? When I write 'import urllib.request' (without quotation marks, of course), and nothing else, in the output page I see 'Memory limit exceeded'. So this happens even if I just import the module and do not have any other code. Does anyone know how to fix it?
3 ответов
+ 8
I'm afraid it can't be done. Importing the whole module proved to be too much for the Playground to handle. Even before the current 'memory problems'.
+ 1
Interestingly, it happens even if I write 'from urllib.request import urlopen' (suppose it should use less memory in this case)
0
I don't know the answer to your question, but I do know sololearn playground is having issues with Python memory limit exceeded