New submission from Mikhail Korobov:

Docs currently say that urllib.parse.SplitResult is a subclass of tuple, 
without saying that it is namedtuple. What do you think about documenting it as 
a namedtuple? It has an useful _replace method which allows to change some part 
of URL before passing it to urlunsplit.

It may also require updating typeshed - I noticed this issue because mypy shows 
an error when SplitResult._replace is used.

----------
messages: 269964
nosy: kmike
priority: normal
severity: normal
status: open
title: Document that SplitResult & friends are namedtuples

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

Reply via email to