[issue27464] Document that SplitResult & friends are namedtuples

Mikhail Korobov report at bugs.python.org
Thu Jul 7 19:42:36 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue27464>
_______________________________________


More information about the Python-bugs-list mailing list