[issue38828] cookiejar.py broken in 3.8

2019-11-17 Thread SilentGhost


Change by SilentGhost :


--
keywords: +3.8regression
stage:  -> test needed
type: crash -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38828] cookiejar.py broken in 3.8

2019-11-17 Thread Kovid Goyal


Kovid Goyal  added the comment:

The issue is obvious with a simple glance at the code. Either the Cookie 
constructor needs to change version = None to zero or some other integer or the 
various methods in that module need to handle a None version. I dont personally 
care about this issue any more since I have worked around it in my code, feel 
free to fix it or not, as you wish.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38828] cookiejar.py broken in 3.8

2019-11-17 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Can you please add a sample script to reproduce this that worked fine before 
Python 3.8?

--
nosy: +xtreak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38828] cookiejar.py broken in 3.8

2019-11-17 Thread Kovid Goyal


New submission from Kovid Goyal :

In python 3.8 cookiejar.py is full of code that compares cookie.version to 
integers, which raises as exception when cookie.version is None. For example, 
in set_ok_version() and set_ok_path(). Both the Cookie constructor and 
_cookie_from_cookie_tuple() explicitly assume version can be None and setting 
version to None worked fine in previous pythonreleases.

--
components: Library (Lib)
messages: 356797
nosy: kovid
priority: normal
severity: normal
status: open
title: cookiejar.py broken in 3.8
type: crash
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com