Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Help with urllib.request
Post: RE: Help with urllib.request

Thank you very much!
Brian177 General Coding Help 2 2,887 Apr-21-2021, 01:58 PM
    Thread: Help with urllib.request
Post: Help with urllib.request

Help on this please; Is a second urlopen needed, in the scenario I describe? import urllib.request # Given you open a url resp = urllib.request.urlopen('http://httpbin.org/xml') # Then execute a re...
Brian177 General Coding Help 2 2,887 Apr-19-2021, 01:53 AM
    Thread: Error on open of file created with tempfile.TemporaryDirectory()
Post: RE: Error on open of file created with tempfile.Te...

Thank you all! Adding the tfp.close() resolved it as I am on Windows 10. The code is from a video Python course I am taking. The code works for the instructor in the video, and he is on Linux, or a L...
Brian177 General Coding Help 4 6,311 Apr-05-2021, 07:12 PM
    Thread: Error on open of file created with tempfile.TemporaryDirectory()
Post: Error on open of file created with tempfile.Tempor...

The below code gives an error on the line: tfp = open(path, "w+t") Anyone know why? Error:Exception has occurred: NotADirectoryError [WinError 267] The directory name is invalid: 'C:\\Users\\gener\\A...
Brian177 General Coding Help 4 6,311 Apr-04-2021, 02:49 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020