Jul-24-2023, 05:20 PM
Definitely strange behaviour. I tried using the Visual Studio Code IDE and it gives this result
>>> dir(urllib) ['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'parse']It seems to me that the IDE should not significantly change the environment such that functioning code (from within the IDE) becomes non-functioning when run outside the IDE. But at least I know how to fix it (this time). I can't wait for the next gotcha.