GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — LWPCookieJar.save() gives unexpected results in 3.11.0 · Issue #99576 · python/cpython Closed Labels type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug report
from http.cookiejar import LWPCookieJar from urllib.request import Request, urlopen lwp = LWPCookieJar("cookies.lwp") # get some cookies & save request = Request("https://www.scoopmeacookie.com/give-me-more/") with urlopen(request) as response: lwp.extract_cookies(response, request) # here's some cookies print(f"Extracted : {lwp}") lwp.save() # clear the jar & save lwp.clear() # the jar is now empty print(f"Clear : {lwp}") lwp.save() # are those cookies really gone ? lwp.load() # they're back ! that would be great IRL # LWPCookieJar.save() didn't truncate the file (os.O_TRUNC is missing) print(f"Reload : {lwp}") Environment
Linked PRsActivity
MetadataMetadataAssigneesLabelstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |