[New-bugs-announce] [issue22775] SimpleCookie not picklable with HIGHEST_PROTOCOL

Tim Graham report at bugs.python.org
Fri Oct 31 17:58:03 CET 2014

New submission from Tim Graham:


>>> import pickle
>>> from http.cookies import SimpleCookie
>>> pickle.loads(pickle.dumps(SimpleCookie('hi=there'),2))
<SimpleCookie: hi='there'>
# Actual
<SimpleCookie: hi='Set-Cookie: hi=there'>

Patch is based on the suggestion from Georg Brandl in #22758 (I added the "else" as the fix did not work without it).

components: Library (Lib)
files: cookie-pickle-highest.diff
keywords: patch
messages: 230354
nosy: Tim.Graham, berker.peksag, georg.brandl
priority: normal
severity: normal
status: open
title: SimpleCookie not picklable with HIGHEST_PROTOCOL
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file37088/cookie-pickle-highest.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list