Open Close <openandclos...@gmail.com> added the comment:

This is a duplicate of issue22852 ('urllib.parse wrongly strips empty 
#fragment, ?query, //netloc').

Also note that three alternative solutions have already proposed.

(1) Add 'None' type to Result objects members like this one.

    But it is considering not only query and fragment, but also netloc,
    which may solve many other issues.

(2) Add 'has_netloc', 'has_query' and 'has_fragment' attribute.

(3) like (1), but conditional on 'allow_none' argument (similar to 
'allow_fragments')

----------
nosy: +op368

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37969>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to