henrik242 <hen...@synth.no> added the comment:
Also, it seems that urllib.urlopen just creates a similar Request object when given a data paramenter: def open(self, fullurl, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): # accept a URL or a Request object if isinstance(fullurl, str): req = Request(fullurl, data) else: req = fullurl if data is not None: req.data = data >From https://github.com/python/cpython/blob/3.7/Lib/urllib/request.py#L507 via >https://github.com/python/cpython/blob/3.7/Lib/urllib/request.py#L222 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39875> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com