[issue27464] Document that SplitResult & friends are namedtuples

2016-07-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue27464] Document that SplitResult & friends are namedtuples

2016-07-10 Thread Martin Panter
Martin Panter added the comment: I agree, SplitResult._replace() would probably have been very useful to me in the past if it were available (and guaranteed by the documentation). The namedtuple implementation was added in revision 79579fa8d752 (in 2.6 and 3.0), with a comment mentioning speed

[issue27464] Document that SplitResult & friends are namedtuples

2016-07-08 Thread SilentGhost
Changes by SilentGhost : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: -> needs patch versions: +Python 3.5, Python 3.6 ___ Python tracker __

[issue27464] Document that SplitResult & friends are namedtuples

2016-07-07 Thread Mikhail Korobov
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