[issue15824] mutable urlparse return type

mastahyeti report at bugs.python.org
Thu Aug 30 21:10:22 CEST 2012


mastahyeti added the comment:

I can live with that, it just seems that ordinary item assignment is
more pythonic....

On Thu, Aug 30, 2012 at 2:03 PM, R. David Murray <report at bugs.python.org> wrote:
>
> R. David Murray added the comment:
>
> Actually, Senthil is right.  What you want is the _replace method of namedtuple to satisfy your use case.
>
> ----------
> resolution:  -> works for me
> stage:  -> committed/rejected
> status: open -> closed
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue15824>
> _______________________________________

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15824>
_______________________________________


More information about the Python-bugs-list mailing list