[issue11862] urlparse.ParseResult to have meaningful __str__

Tomasz Melcer report at bugs.python.org
Sun Apr 17 20:23:14 CEST 2011


New submission from Tomasz Melcer <liori at o2.pl>:

I find it a minor annoyance that a result of `urlparse.urlparse` (an object of class urlparse.ParseResult) doesn't have a meaningful __str__/__unicode__ methods. `urlparse.ParseResult` is a subclass of `namedtuple` with __slots__, so I can't easily add it, too.

I propose to make __str__/__unicode__ equivalent to geturl() call.

----------
components: Extension Modules
messages: 133934
nosy: liori
priority: normal
severity: normal
status: open
title: urlparse.ParseResult to have meaningful __str__
type: feature request

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


More information about the Python-bugs-list mailing list