from http import cookies


HTTP_COOKIE = '; '.join([
    r'integer=5',
    r'with_quotes="He said, \"Hello, World!\""',
])

print('From constructor:')
c = cookies.SimpleCookie(HTTP_COOKIE)
print(c)

print()
print('From load():')
c = cookies.SimpleCookie()
c.load(HTTP_COOKIE)
print(c)

de58756f6d6e397ecd8140df190ca2f62092acef
<mask token>

<mask token>
print('From constructor:')
<mask token>
print(c)
print()
print('From load():')
<mask token>
c.load(HTTP_COOKIE)
print(c)

<mask token>
HTTP_COOKIE = '; '.join(['integer=5',
    'with_quotes="He said, \\"Hello, World!\\""'])
print('From constructor:')
c = cookies.SimpleCookie(HTTP_COOKIE)
print(c)
print()
print('From load():')
c = cookies.SimpleCookie()
c.load(HTTP_COOKIE)
print(c)

from http import cookies
HTTP_COOKIE = '; '.join(['integer=5',
    'with_quotes="He said, \\"Hello, World!\\""'])
print('From constructor:')
c = cookies.SimpleCookie(HTTP_COOKIE)
print(c)
print()
print('From load():')
c = cookies.SimpleCookie()
c.load(HTTP_COOKIE)
print(c)

from http import cookies


HTTP_COOKIE = '; '.join([
    r'integer=5',
    r'with_quotes="He said, \"Hello, World!\""',
])

print('From constructor:')
c = cookies.SimpleCookie(HTTP_COOKIE)
print(c)

print()
print('From load():')
c = cookies.SimpleCookie()
c.load(HTTP_COOKIE)
print(c)
